diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-01-08 11:47:17 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-01-08 11:47:17 +0300 |
commit | 3d58f8c29bd156dcb34040f50b7203cc0ba8e2cc (patch) | |
tree | 211ff0f4cb5ddbf547b3322b8f81a5234928168b /src/os/unix/ngx_process.h | |
parent | a9030ebcca7aff99c2a9d90ea702ad7f74a50941 (diff) |
nginx-0.0.1-2004-01-08-11:47:17 import
Diffstat (limited to 'src/os/unix/ngx_process.h')
-rw-r--r-- | src/os/unix/ngx_process.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/unix/ngx_process.h b/src/os/unix/ngx_process.h index 5b7e37c34..c63ff5260 100644 --- a/src/os/unix/ngx_process.h +++ b/src/os/unix/ngx_process.h @@ -29,7 +29,9 @@ typedef struct { } ngx_exec_ctx_t; -#define ngx_getpid getpid +#define NGX_PROCESS_SINGLE 0 +#define NGX_PROCESS_MASTER 1 +#define NGX_PROCESS_WORKER 2 #define NGX_MAX_PROCESSES 1024 @@ -38,6 +40,8 @@ typedef struct { #define NGX_PROCESS_DETACHED -3 +#define ngx_getpid getpid + ngx_int_t ngx_spawn_process(ngx_cycle_t *cycle, ngx_spawn_proc_pt proc, void *data, char *name, ngx_int_t respawn); |