From ee036f74f1d975bd5dec03592a614bbd619b8b54 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 1 Sep 2010 00:14:11 +0200 Subject: [PATCH] htparser: Fixed pidfile-less bug. --- src/htparser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.11.0