From: Denis Vlasenko Date: Wed, 7 May 2008 09:22:44 +0000 (-0000) Subject: httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI. X-Git-Tag: android-x86-2.2~1721 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b153ace939f7ab2857605fe10c6ae3ebd903288a;p=android-x86%2Fexternal-busybox.git httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI. function old new delta send_cgi_and_exit 856 869 +13 --- diff --git a/networking/httpd.c b/networking/httpd.c index b4a8d277b..ed699df48 100644 --- 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);