From 6e8d4129b2acc50f639dbabe15191913d250da9d Mon Sep 17 00:00:00 2001 From: Alexander Alashkin <alexander.alashkin@cesanta.com> Date: Tue, 7 Feb 2017 18:55:24 +0800 Subject: [PATCH] Use _exit in CGI. Close cesanta/mongoose#779 PUBLISHED_FROM=bfe62d3824ee3a6e66b7d1a57ee7bad3b726649d --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 5ec26df21..634e80543 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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); -- GitLab