Moved SIGCHLD handler out of mongoose.c. Embedded user must set SIGCHLD handler if CGI is used.

This commit is contained in:
Sergey Lyubka committed 2013-09-07 19:41:40 +01:00
1 parent e556a487e0
commit 73d2b395d1
3 files changed
+9 -4

No files matched your search

-2
View File
@@ -5452,8 +5452,6 @@ struct mg_context *mg_start(const struct mg_callbacks *callbacks,
// Ignore SIGPIPE signal, so if browser cancels the request, it
// won't kill the whole process.
(void) signal(SIGPIPE, SIG_IGN);
// Also ignoring SIGCHLD to let the OS to reap zombies properly.
(void) signal(SIGCHLD, SIG_IGN);
#endif // !_WIN32
(void) pthread_mutex_init(&ctx->mutex, NULL);