From: Fredrik Tolf Date: Tue, 31 Aug 2010 22:14:11 +0000 (+0200) Subject: htparser: Fixed pidfile-less bug. X-Git-Tag: 0.1~46 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=ee036f74f1d975bd5dec03592a614bbd619b8b54 htparser: Fixed pidfile-less bug. --- diff --git a/src/htparser.c b/src/htparser.c index 17ad93a..0824902 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -486,9 +486,10 @@ int main(int argc, char **argv) if(daemonize) { daemon(0, 0); } - if(pidout != NULL) + if(pidout != NULL) { fprintf(pidout, "%i\n", getpid()); - fclose(pidout); + fclose(pidout); + } ioloop(); return(0); }