call[fs]cgi: Call killcuraddr explicitly instead of as an exit handler.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 14 Oct 2014 22:05:38 +0000 (00:05 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 14 Oct 2014 22:05:38 +0000 (00:05 +0200)
src/callfcgi.c
src/callscgi.c

index 9969c89..1abe7d3 100644 (file)
@@ -801,7 +801,7 @@ int main(int argc, char **argv)
     signal(SIGINT, sigexit);
     signal(SIGTERM, sigexit);
     mustart(listenloop, 0);
-    atexit(killcuraddr);
     ioloop();
+    killcuraddr();
     return(0);
 }
index 47bd107..6d72f0e 100644 (file)
@@ -608,7 +608,7 @@ int main(int argc, char **argv)
     signal(SIGINT, sigexit);
     signal(SIGTERM, sigexit);
     mustart(listenloop, 0);
-    atexit(killcuraddr);
     ioloop();
+    killcuraddr();
     return(0);
 }