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

+4 -2
View File
@@ -142,10 +142,12 @@ struct mg_callbacks {
// options: NULL terminated list of option_name, option_value pairs that
// specify Mongoose configuration parameters.
//
// Side-effects: on UNIX, ignores SIGCHLD and SIGPIPE signals. If custom
// processing is required for these, signal handlers must be set up
// Side-effects: on UNIX, ignores SIGPIPE signals. If custom
// processing is required SIGPIPE, signal handler must be set up
// after calling mg_start().
//
// Important: Mongoose does not install SIGCHLD handler. If CGI is used,
// SIGCHLD handler must be set up to reap CGI zombie processes.
//
// Example:
// const char *options[] = {