Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295f917
)
callcgi: Fixed possible deadlock problem on aborted requests.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 7 Mar 2017 02:24:17 +0000
(
03:24
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 7 Mar 2017 02:24:17 +0000
(
03:24
+0100)
src/callcgi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/callcgi.c
b/src/callcgi.c
index
67a6d14
..
2b1c9e6
100644
(file)
--- a/
src/callcgi.c
+++ b/
src/callcgi.c
@@
-436,6
+436,7
@@
int main(int argc, char **argv, char **envp)
printf("\n");
if(passdata(out, stdout))
kill(child, SIGINT);
+ fclose(out);
if(waitpid(child, &estat, 0) == child) {
if(WCOREDUMP(estat))
flog(LOG_WARNING, "CGI handler `%s' dumped core", prog.b[0]);