OSDN Git Service
(root)
/
android-x86
/
external-busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ebc16
)
httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 7 May 2008 09:22:44 +0000
(09:22 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 7 May 2008 09:22:44 +0000
(09:22 -0000)
function old new delta
send_cgi_and_exit 856 869 +13
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index
b4a8d27
..
ed699df
100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-1457,6
+1457,13
@@
static void send_cgi_and_exit(
}
}
#endif
+ /* restore default signal dispositions for CGI process */
+ bb_signals(0
+ | (1 << SIGCHLD)
+ | (1 << SIGPIPE)
+ | (1 << SIGHUP)
+ , SIG_DFL);
+
execv(fullpath, argv);
if (verbose)
bb_perror_msg("exec %s", fullpath);