Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call[fs]cgi: Call killcuraddr explicitly instead of as an exit handler.
[ashd.git]
/
src
/
callfcgi.c
diff --git
a/src/callfcgi.c
b/src/callfcgi.c
index
2b3717e
..
1abe7d3
100644
(file)
--- a/
src/callfcgi.c
+++ b/
src/callfcgi.c
@@
-758,7
+758,6
@@
static void sigign(int sig)
static void sigexit(int sig)
{
shutdown(0, SHUT_RDWR);
static void sigexit(int sig)
{
shutdown(0, SHUT_RDWR);
- exit(0);
}
static void usage(FILE *out)
}
static void usage(FILE *out)
@@
-802,7
+801,7
@@
int main(int argc, char **argv)
signal(SIGINT, sigexit);
signal(SIGTERM, sigexit);
mustart(listenloop, 0);
signal(SIGINT, sigexit);
signal(SIGTERM, sigexit);
mustart(listenloop, 0);
- atexit(killcuraddr);
ioloop();
ioloop();
+ killcuraddr();
return(0);
}
return(0);
}