svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Wed May 7 09:22:44 UTC 2008
Author: vda
Date: 2008-05-07 02:22:44 -0700 (Wed, 07 May 2008)
New Revision: 21942
Log:
httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.
function old new delta
send_cgi_and_exit 856 869 +13
Modified:
trunk/busybox/networking/httpd.c
Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c 2008-05-07 09:17:42 UTC (rev 21941)
+++ trunk/busybox/networking/httpd.c 2008-05-07 09:22:44 UTC (rev 21942)
@@ -1457,6 +1457,13 @@
}
}
#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);
More information about the busybox-cvs
mailing list