From: Fredrik Tolf Date: Tue, 14 Oct 2014 22:05:38 +0000 (+0200) Subject: call[fs]cgi: Call killcuraddr explicitly instead of as an exit handler. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=d06b6013fea7b2c01e75c5fe8bf98ab7caf1346c;p=ashd.git call[fs]cgi: Call killcuraddr explicitly instead of as an exit handler. --- diff --git a/src/callfcgi.c b/src/callfcgi.c index 9969c89..1abe7d3 100644 --- a/src/callfcgi.c +++ b/src/callfcgi.c @@ -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); } diff --git a/src/callscgi.c b/src/callscgi.c index 47bd107..6d72f0e 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -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); }