#include <unistd.h>
#include <string.h>
#include <errno.h>
+#include <signal.h>
static int prio;
name = NULL;
prio = LOG_WARNING;
fac = LOG_DAEMON;
- while((c = getopt(argc, argv, "hn:p:f:")) >= 0) {
+ while((c = getopt(argc, argv, "+hn:p:f:")) >= 0) {
switch(c) {
case 'n':
name = optarg;
exit(127);
}
close(pfd[1]);
+ signal(SIGCHLD, SIG_IGN);
logloop(pfd[0]);
return(0);
}