Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the `htpipe' program.
[ashd.git]
/
src
/
callcgi.c
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);
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]);
if(waitpid(child, &estat, 0) == child) {
if(WCOREDUMP(estat))
flog(LOG_WARNING, "CGI handler `%s' dumped core", prog.b[0]);