1 --- cups-1.1.21/scheduler/main.c.pid 2004-09-24 11:29:05.073748138 +0100
2 +++ cups-1.1.21/scheduler/main.c 2004-09-24 11:44:35.826446564 +0100
4 * Setup signal handlers for the parent...
9 #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */
10 sigset(SIGUSR1, parent_handler);
11 sigset(SIGCHLD, parent_handler);
13 signal(SIGHUP, SIG_IGN);
14 #endif /* HAVE_SIGSET */
17 + if ((pid = fork()) > 0)
20 * OK, wait for the child to startup and send us SIGUSR1 or to crash
24 if (parent_signal == SIGUSR1)
26 + FILE *f = fopen ("/var/run/cupsd.pid", "w");
29 + fprintf (f, "%d\n", pid);