Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_process.h @ 326:9fc4ab6673f9 NGINX_0_6_7
nginx 0.6.7
*) Change: now the paths specified in the "include",
"auth_basic_user_file", "perl_modules", "ssl_certificate",
"ssl_certificate_key", and "ssl_client_certificate" directives are
relative to directory of nginx configuration file nginx.conf, but
not to nginx prefix directory.
*) Change: the --sysconfdir=PATH option in configure was canceled.
*) Change: the special make target "upgrade1" was defined for online
upgrade of 0.1.x versions.
*) Feature: the "server_name" and "valid_referers" directives support
regular expressions.
*) Feature: the "server" directive in the "upstream" context supports
the "backup" parameter.
*) Feature: the ngx_http_perl_module supports the
$r->discard_request_body.
*) Feature: the "add_header Last-Modified ..." directive changes the
"Last-Modified" response header line.
*) Bugfix: if an response different than 200 was returned to an request
with body and connection went to the keep-alive state after the
request, then nginx returned 400 for the next request.
*) Bugfix: a segmentation fault occurred in worker process if invalid
address was set in the "auth_http" directive.
*) Bugfix: now nginx uses default listen backlog value 511 on all
platforms except FreeBSD.
Thanks to Jiang Hong.
*) Bugfix: a worker process may got caught in an endless loop, if an
"server" inside "upstream" block was marked as "down"; bug appeared
in 0.6.6.
*) Bugfix: now Solaris sendfilev() is not used to transfer the client
request body to FastCGI-server via the unix domain socket.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 15 Aug 2007 00:00:00 +0400 |
parents | cf3d6edb3ad6 |
children | 43cc6f0b77ce |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_PROCESS_H_INCLUDED_ | |
8 #define _NGX_PROCESS_H_INCLUDED_ | |
9 | |
10 | |
80 | 11 #include <ngx_setproctitle.h> |
12 | |
13 | |
0 | 14 typedef pid_t ngx_pid_t; |
15 | |
92 | 16 #define NGX_INVALID_PID -1 |
17 | |
0 | 18 typedef void (*ngx_spawn_proc_pt) (ngx_cycle_t *cycle, void *data); |
19 | |
20 typedef struct { | |
21 ngx_pid_t pid; | |
22 int status; | |
23 ngx_socket_t channel[2]; | |
24 | |
25 ngx_spawn_proc_pt proc; | |
26 void *data; | |
27 char *name; | |
28 | |
29 unsigned respawn:1; | |
30 unsigned just_respawn:1; | |
31 unsigned detached:1; | |
32 unsigned exiting:1; | |
33 unsigned exited:1; | |
34 } ngx_process_t; | |
35 | |
36 | |
37 typedef struct { | |
38 char *path; | |
39 char *name; | |
40 char *const *argv; | |
41 char *const *envp; | |
42 } ngx_exec_ctx_t; | |
43 | |
44 | |
45 #define NGX_MAX_PROCESSES 1024 | |
46 | |
47 #define NGX_PROCESS_NORESPAWN -1 | |
48 #define NGX_PROCESS_RESPAWN -2 | |
49 #define NGX_PROCESS_JUST_RESPAWN -3 | |
50 #define NGX_PROCESS_DETACHED -4 | |
51 | |
52 | |
53 #define ngx_getpid getpid | |
108 | 54 |
55 #ifndef ngx_log_pid | |
0 | 56 #define ngx_log_pid ngx_pid |
108 | 57 #endif |
58 | |
0 | 59 |
60 ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, | |
42 | 61 ngx_spawn_proc_pt proc, void *data, char *name, ngx_int_t respawn); |
0 | 62 ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); |
88 | 63 ngx_int_t ngx_init_signals(ngx_log_t *log); |
10 | 64 void ngx_debug_point(void); |
0 | 65 |
4 | 66 |
67 #if (NGX_HAVE_SCHED_YIELD) | |
0 | 68 #define ngx_sched_yield() sched_yield() |
4 | 69 #else |
70 #define ngx_sched_yield() usleep(1) | |
71 #endif | |
72 | |
0 | 73 |
2 | 74 extern int ngx_argc; |
75 extern char **ngx_argv; | |
76 extern char **ngx_os_argv; | |
0 | 77 |
78 extern ngx_pid_t ngx_pid; | |
79 extern ngx_socket_t ngx_channel; | |
80 extern ngx_int_t ngx_process_slot; | |
81 extern ngx_int_t ngx_last_process; | |
82 extern ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; | |
83 | |
84 | |
85 #endif /* _NGX_PROCESS_H_INCLUDED_ */ |