You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
906 B
38 lines
906 B
--- scheduler/main.c.orig 2003-05-01 19:58:28.000000000 +0200 |
|
+++ scheduler/main.c 2003-05-03 18:54:34.000000000 +0200 |
|
@@ -222,6 +222,25 @@ |
|
|
|
chdir("/"); |
|
|
|
+ /* |
|
+ * Write PID file |
|
+ */ |
|
+#ifdef PID_FILE |
|
+ { |
|
+ mode_t old_umask; |
|
+ pid_t pid; |
|
+ FILE *fp; |
|
+ |
|
+ old_umask = umask((mode_t) 0022); |
|
+ pid = getpid(); |
|
+ if ((fp = fopen(PID_FILE, "w")) == NULL) |
|
+ syslog(LOG_ERR, "cannot write PID file '%s'", PID_FILE); |
|
+ fprintf(fp, "%ld\n", (long)pid); |
|
+ fclose(fp); |
|
+ umask(old_umask); |
|
+ } |
|
+#endif |
|
+ |
|
#ifndef DEBUG |
|
/* |
|
* Disable core dumps... |
|
--- backend/usb.c.dist 2003-08-11 15:10:48.000000000 +0200 |
|
+++ backend/usb.c 2003-08-11 16:36:10.000000000 +0200 |
|
@@ -63,6 +63,7 @@ |
|
# ifdef __sparc |
|
# include <sys/ecppio.h> |
|
# else |
|
+# include <sys/ioctl.h> |
|
# include <sys/ecppsys.h> |
|
# endif /* __sparc */ |
|
#endif /* __sun */
|
|
|