comparison src/os/win32/ngx_process.h @ 278:0ba4821f4460

nginx-0.0.2-2004-03-04-10:04:55 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 04 Mar 2004 07:04:55 +0000
parents c14d7232b11f
children b79f021a644a
comparison
equal deleted inserted replaced
277:e91499541410 278:0ba4821f4460
1 #ifndef _NGX_PROCESS_H_INCLUDED_ 1 #ifndef _NGX_PROCESS_H_INCLUDED_
2 #define _NGX_PROCESS_H_INCLUDED_ 2 #define _NGX_PROCESS_H_INCLUDED_
3 3
4 4
5 #define ngx_getpid GetCurrentProcessId 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
24 ngx_pid_t ngx_exec(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx);
25
26
27 extern ngx_pid_t ngx_pid;
6 28
7 29
8 #endif /* _NGX_PROCESS_H_INCLUDED_ */ 30 #endif /* _NGX_PROCESS_H_INCLUDED_ */