1 diff -Naur pxe-1.4.2.orig/autoconf.h.in pxe-1.4.2/autoconf.h.in
2 --- pxe-1.4.2.orig/autoconf.h.in 2002-08-22 18:06:11.000000000 +0000
3 +++ pxe-1.4.2/autoconf.h.in 2006-07-22 19:50:33.000000000 +0000
5 /* should not need to change from here onwards */
8 -#define LOCKFILE "/tmp/pxe.pid"
9 +#define LOCKFILE "/var/run/pxe/pxe.pid"
11 #define DEF_MULTI_BOOT 0xe0000102
12 #define DEF_ADDR "0.0.0.0"
13 diff -Naur pxe-1.4.2.orig/pxe.cc pxe-1.4.2/pxe.cc
14 --- pxe-1.4.2.orig/pxe.cc 2003-02-02 12:39:26.000000000 +0000
15 +++ pxe-1.4.2/pxe.cc 2006-07-22 19:50:33.000000000 +0000
20 - sprintf(pidnum, "%ld", (long)getpid());
21 + sprintf(pidnum, "%ld\n", (long)getpid());
22 if(write(chk, pidnum, strlen(pidnum)) !=
23 (ssize_t)strlen(pidnum)) {
24 std::cerr << "Unable to write lockfile\n";