From: Fredrik Tolf Date: Sun, 9 Jun 2013 02:02:08 +0000 (+0200) Subject: accesslog: Explicitly close logfile when exiting. X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=f95bc20584e36b777421070bb1cfd450349fac4d accesslog: Explicitly close logfile when exiting. --- diff --git a/src/accesslog.c b/src/accesslog.c index 0c292c8..f17eebe 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -395,6 +395,7 @@ int main(int argc, char **argv) if(pfd[1].revents & POLLHUP) break; } + fclose(out); if(pidfile != NULL) unlink(pidfile); return(0);