diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-07 09:22:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-07 09:22:44 +0000 |
commit | b153ace939f7ab2857605fe10c6ae3ebd903288a (patch) | |
tree | bf519e53dfe8cf2a1c91e00adf84a7d9f3aa53c6 | |
parent | 06ebc16461fcb1cbf54ac0b5d73d08225fe83f22 (diff) | |
download | busybox-w32-b153ace939f7ab2857605fe10c6ae3ebd903288a.tar.gz busybox-w32-b153ace939f7ab2857605fe10c6ae3ebd903288a.tar.bz2 busybox-w32-b153ace939f7ab2857605fe10c6ae3ebd903288a.zip |
httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.
function old new delta
send_cgi_and_exit 856 869 +13
-rw-r--r-- | networking/httpd.c | 7 |
1 files changed, 7 insertions, 0 deletions
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( | |||
1457 | } | 1457 | } |
1458 | } | 1458 | } |
1459 | #endif | 1459 | #endif |
1460 | /* restore default signal dispositions for CGI process */ | ||
1461 | bb_signals(0 | ||
1462 | | (1 << SIGCHLD) | ||
1463 | | (1 << SIGPIPE) | ||
1464 | | (1 << SIGHUP) | ||
1465 | , SIG_DFL); | ||
1466 | |||
1460 | execv(fullpath, argv); | 1467 | execv(fullpath, argv); |
1461 | if (verbose) | 1468 | if (verbose) |
1462 | bb_perror_msg("exec %s", fullpath); | 1469 | bb_perror_msg("exec %s", fullpath); |