blob: e80af0a2f2cd06b5daaba98b59baacb6155d9b7a [file] [log] [blame]
Igor Sysoevd90282d2004-09-28 08:34:51 +00001
2/*
Igor Sysoevff8da912004-09-29 16:00:49 +00003 * Copyright (C) Igor Sysoev
Igor Sysoevd90282d2004-09-28 08:34:51 +00004 */
5
6
Igor Sysoeva5362982004-03-04 07:04:55 +00007#ifndef _NGX_PROCESS_CYCLE_H_INCLUDED_
8#define _NGX_PROCESS_CYCLE_H_INCLUDED_
9
10
11#include <ngx_config.h>
12#include <ngx_core.h>
13
14
Igor Sysoeva5362982004-03-04 07:04:55 +000015#define NGX_PROCESS_SINGLE 0
16#define NGX_PROCESS_MASTER 1
17#define NGX_PROCESS_WORKER 2
18
19
Igor Sysoev924bd792004-10-11 15:07:03 +000020void ngx_master_process_cycle(ngx_cycle_t *cycle);
21void ngx_single_process_cycle(ngx_cycle_t *cycle);
Igor Sysoeva5362982004-03-04 07:04:55 +000022
23
Igor Sysoev3f4685f2004-04-25 20:13:21 +000024extern ngx_uint_t ngx_process;
Igor Sysoeva5362982004-03-04 07:04:55 +000025extern ngx_pid_t ngx_pid;
26extern ngx_pid_t ngx_new_binary;
Igor Sysoev3f4685f2004-04-25 20:13:21 +000027extern ngx_uint_t ngx_inherited;
28extern ngx_uint_t ngx_threaded;
29extern ngx_uint_t ngx_exiting;
Igor Sysoeva5362982004-03-04 07:04:55 +000030
31extern sig_atomic_t ngx_reap;
32extern sig_atomic_t ngx_timer;
33extern sig_atomic_t ngx_quit;
34extern sig_atomic_t ngx_terminate;
35extern sig_atomic_t ngx_noaccept;
36extern sig_atomic_t ngx_reconfigure;
37extern sig_atomic_t ngx_reopen;
38extern sig_atomic_t ngx_change_binary;
39
40
41#endif /* _NGX_PROCESS_CYCLE_H_INCLUDED_ */