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
/
callscgi.c
diff --git
a/src/callscgi.c
b/src/callscgi.c
index
b78827c
..
6d72f0e
100644
(file)
--- a/
src/callscgi.c
+++ b/
src/callscgi.c
@@
-565,7
+565,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)
@@
-609,7
+608,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);
}