mirror of
https://github.com/sheumann/hush.git
synced 2025-01-01 02:32:25 +00:00
httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.
function old new delta send_cgi_and_exit 856 869 +13
This commit is contained in:
parent
06ebc16461
commit
b153ace939
@ -1457,6 +1457,13 @@ static void send_cgi_and_exit(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
/* restore default signal dispositions for CGI process */
|
||||||
|
bb_signals(0
|
||||||
|
| (1 << SIGCHLD)
|
||||||
|
| (1 << SIGPIPE)
|
||||||
|
| (1 << SIGHUP)
|
||||||
|
, SIG_DFL);
|
||||||
|
|
||||||
execv(fullpath, argv);
|
execv(fullpath, argv);
|
||||||
if (verbose)
|
if (verbose)
|
||||||
bb_perror_msg("exec %s", fullpath);
|
bb_perror_msg("exec %s", fullpath);
|
||||||
|
Loading…
Reference in New Issue
Block a user