Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_process.h @ 694:88a1b4797f2e NGINX_1_3_10
nginx 1.3.10
*) Change: domain names specified in configuration file are now resolved
to IPv6 addresses as well as IPv4 ones.
*) Change: now if the "include" directive with mask is used on Unix
systems, included files are sorted in alphabetical order.
*) Change: the "add_header" directive adds headers to 201 responses.
*) Feature: the "geo" directive now supports IPv6 addresses in CIDR
notation.
*) Feature: the "flush" and "gzip" parameters of the "access_log"
directive.
*) Feature: variables support in the "auth_basic" directive.
*) Bugfix: nginx could not be built with the ngx_http_perl_module in
some cases.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_xslt_module was used.
*) Bugfix: nginx could not be built on MacOSX in some cases.
Thanks to Piotr Sikora.
*) Bugfix: the "limit_rate" directive with high rates might result in
truncated responses on 32-bit platforms.
Thanks to Alexey Antropov.
*) Bugfix: a segmentation fault might occur in a worker process if the
"if" directive was used.
Thanks to Piotr Sikora.
*) Bugfix: a "100 Continue" response was issued with "413 Request Entity
Too Large" responses.
*) Bugfix: the "image_filter", "image_filter_jpeg_quality" and
"image_filter_sharpen" directives might be inherited incorrectly.
Thanks to Ian Babrou.
*) Bugfix: "crypt_r() failed" errors might appear if the "auth_basic"
directive was used on Linux.
*) Bugfix: in backup servers handling.
Thanks to Thomas Chen.
*) Bugfix: proxied HEAD requests might return incorrect response if the
"gzip" directive was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 25 Dec 2012 00:00:00 +0400 |
parents | 9fbf3ad94cbf |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 4 * Copyright (C) Nginx, Inc. |
0 | 5 */ |
6 | |
7 | |
8 #ifndef _NGX_PROCESS_H_INCLUDED_ | |
9 #define _NGX_PROCESS_H_INCLUDED_ | |
10 | |
11 | |
668 | 12 #include <ngx_setaffinity.h> |
80 | 13 #include <ngx_setproctitle.h> |
14 | |
15 | |
0 | 16 typedef pid_t ngx_pid_t; |
17 | |
92 | 18 #define NGX_INVALID_PID -1 |
19 | |
0 | 20 typedef void (*ngx_spawn_proc_pt) (ngx_cycle_t *cycle, void *data); |
21 | |
22 typedef struct { | |
23 ngx_pid_t pid; | |
24 int status; | |
25 ngx_socket_t channel[2]; | |
26 | |
27 ngx_spawn_proc_pt proc; | |
28 void *data; | |
29 char *name; | |
30 | |
31 unsigned respawn:1; | |
514 | 32 unsigned just_spawn:1; |
0 | 33 unsigned detached:1; |
34 unsigned exiting:1; | |
35 unsigned exited:1; | |
36 } ngx_process_t; | |
37 | |
38 | |
39 typedef struct { | |
40 char *path; | |
41 char *name; | |
42 char *const *argv; | |
43 char *const *envp; | |
44 } ngx_exec_ctx_t; | |
45 | |
46 | |
47 #define NGX_MAX_PROCESSES 1024 | |
48 | |
49 #define NGX_PROCESS_NORESPAWN -1 | |
514 | 50 #define NGX_PROCESS_JUST_SPAWN -2 |
51 #define NGX_PROCESS_RESPAWN -3 | |
52 #define NGX_PROCESS_JUST_RESPAWN -4 | |
53 #define NGX_PROCESS_DETACHED -5 | |
0 | 54 |
55 | |
56 #define ngx_getpid getpid | |
108 | 57 |
58 #ifndef ngx_log_pid | |
0 | 59 #define ngx_log_pid ngx_pid |
108 | 60 #endif |
61 | |
0 | 62 |
63 ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, | |
42 | 64 ngx_spawn_proc_pt proc, void *data, char *name, ngx_int_t respawn); |
0 | 65 ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); |
88 | 66 ngx_int_t ngx_init_signals(ngx_log_t *log); |
10 | 67 void ngx_debug_point(void); |
0 | 68 |
4 | 69 |
70 #if (NGX_HAVE_SCHED_YIELD) | |
0 | 71 #define ngx_sched_yield() sched_yield() |
4 | 72 #else |
73 #define ngx_sched_yield() usleep(1) | |
74 #endif | |
75 | |
0 | 76 |
2 | 77 extern int ngx_argc; |
78 extern char **ngx_argv; | |
79 extern char **ngx_os_argv; | |
0 | 80 |
81 extern ngx_pid_t ngx_pid; | |
82 extern ngx_socket_t ngx_channel; | |
83 extern ngx_int_t ngx_process_slot; | |
84 extern ngx_int_t ngx_last_process; | |
85 extern ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; | |
86 | |
87 | |
88 #endif /* _NGX_PROCESS_H_INCLUDED_ */ |