← Commit list

b153ace93

Denis Vlasenko
Denis Vlasenko
2008-05-07
FAILED Duration: 24s

Subject

httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd.c+7 -0
@@ -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);