mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
Moved SIGCHLD handler out of mongoose.c. Embedded user must set SIGCHLD handler if CGI is used.
This commit is contained in:
1 parent
e556a487e0
commit
73d2b395d1
3 files changed
+9
-4
No files matched your search
@@ -375,6 +375,11 @@ static void start_mongoose(int argc, char *argv[]) {
|
||||
signal(SIGTERM, signal_handler);
|
||||
signal(SIGINT, signal_handler);
|
||||
|
||||
#if !defined(_WIN32)
|
||||
// Also ignoring SIGCHLD to let the OS to reap zombies properly.
|
||||
(void) signal(SIGCHLD, SIG_IGN);
|
||||
#endif
|
||||
|
||||
// Start Mongoose
|
||||
memset(&callbacks, 0, sizeof(callbacks));
|
||||
callbacks.log_message = &log_message;
|
||||
|
||||
Reference in new issue
Block a user