Igor Sysoev | a6717c4 | 2002-12-23 06:29:22 +0000 | [diff] [blame] | 1 | #ifndef _NGX_PROCESS_H_INCLUDED_ |
| 2 | #define _NGX_PROCESS_H_INCLUDED_ |
| 3 | |
| 4 | |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 5 | typedef DWORD ngx_pid_t; |
| 6 | |
| 7 | #define ngx_getpid GetCurrentProcessId |
| 8 | #define ngx_log_pid ngx_pid |
| 9 | |
| 10 | |
| 11 | typedef struct { |
| 12 | char *path; |
| 13 | char *name; |
| 14 | char *const *argv; |
| 15 | char *const *envp; |
| 16 | } ngx_exec_ctx_t; |
| 17 | |
| 18 | |
| 19 | #define NGX_PROCESS_SINGLE 0 |
| 20 | #define NGX_PROCESS_MASTER 1 |
| 21 | #define NGX_PROCESS_WORKER 2 |
| 22 | |
| 23 | |
Igor Sysoev | 6a93045 | 2004-03-04 16:34:23 +0000 | [diff] [blame] | 24 | ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 25 | |
| 26 | |
| 27 | extern ngx_pid_t ngx_pid; |
Igor Sysoev | a6717c4 | 2002-12-23 06:29:22 +0000 | [diff] [blame] | 28 | |
| 29 | |
| 30 | #endif /* _NGX_PROCESS_H_INCLUDED_ */ |