Use _exit in CGI. Close cesanta/mongoose#779

PUBLISHED_FROM=bfe62d3824ee3a6e66b7d1a57ee7bad3b726649d
This commit is contained in:
Alexander Alashkin authored and Cesanta Bot committed 2017-02-07 11:09:49 +00:00
1 parent 2485a8f8d9
commit 6e8d4129b2
1 file changed
+1 -1
+1 -1
View File
@@ -7873,7 +7873,7 @@ static int mg_start_process(const char *interp, const char *cmd,
interp == NULL ? "" : interp, interp == NULL ? "" : " ", cmd,
strerror(errno));
send(1, buf, strlen(buf), 0);
exit(EXIT_FAILURE); /* exec call failed */
_exit(EXIT_FAILURE); /* exec call failed */
}
return (pid != 0);