accesslog: Explicitly close logfile when exiting.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 9 Jun 2013 02:02:08 +0000 (04:02 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 9 Jun 2013 02:02:08 +0000 (04:02 +0200)
src/accesslog.c

index 0c292c8..f17eebe 100644 (file)
@@ -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);