X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fhtparser.c;h=c8064f23fc0ae9d649052815e817aa3beeb02d46;hb=15fa3fe85e9f499003defd7134bfeaa65d3959e2;hp=17ad93abc7234142a3e11e54a5bab85fd3dc93ad;hpb=43c58ba25e47635c8f44e6b1cbda9247219a16b5;p=ashd.git diff --git a/src/htparser.c b/src/htparser.c index 17ad93a..c8064f2 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #ifdef HAVE_CONFIG_H @@ -483,12 +484,14 @@ int main(int argc, char **argv) exit(1); } } + signal(SIGPIPE, SIG_IGN); if(daemonize) { daemon(0, 0); } - if(pidout != NULL) + if(pidout != NULL) { fprintf(pidout, "%i\n", getpid()); - fclose(pidout); + fclose(pidout); + } ioloop(); return(0); }