Main Process Functions¶
Functions¶
-
static void main_proc_init(ymo_wsgi_proc_t *w_proc)¶
Initialize signal handlers for the main process.
Handles
SIGINT
(being shutdown)SIGCHLD
(restart child process)
-
static void ymo_wsgi_main_shutdown(ymo_wsgi_proc_t *w_proc, int my_pid)¶
Begin termination sequence for the WSGI server (typically, in response to some signal).
-
static void ymo_wsgi_main_pkill(struct ev_loop *loop, ev_timer *w, int revents)¶
Invoke by
ymo_wsgi_main_shutdown()
to terminate child processes (if they exist).
-
static int main_proc_teardown(ymo_wsgi_proc_t *w_proc)¶
Cleans up main process resources on termination (i.e. when
ymo_wsgi_proc_main()
completes).