X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fhtparser.c;h=503df99a719ffda1c859d19c0d929dd0745f88dc;hb=6a7a868e28e79f5502cc4b37578c263f640439c8;hp=08249021009f34708fa07ea380a50f275512f340;hpb=ee036f74f1d975bd5dec03592a614bbd619b8b54;p=ashd.git diff --git a/src/htparser.c b/src/htparser.c index 0824902..503df99 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #ifdef HAVE_CONFIG_H @@ -453,7 +454,7 @@ int main(int argc, char **argv) usage(stderr); exit(1); } - if((plex = stdmkchild(argv + ++i)) < 0) { + if((plex = stdmkchild(argv + ++i, NULL, NULL)) < 0) { flog(LOG_ERR, "could not spawn root multiplexer: %s", strerror(errno)); return(1); } @@ -483,6 +484,7 @@ int main(int argc, char **argv) exit(1); } } + signal(SIGPIPE, SIG_IGN); if(daemonize) { daemon(0, 0); }