Mercurial > hg > nginx-quic
annotate src/os/unix/ngx_setproctitle.h @ 681:7e24168b0853 release-0.4.0
nginx-0.4.0-RELEASE import
*) Change in internal API: the HTTP modules initialization was moved
from the init module phase to the HTTP postconfiguration phase.
*) Change: now the request body is not read beforehand for the
ngx_http_perl_module: it's required to start the reading using the
$r->has_request_body method.
*) Feature: the ngx_http_perl_module supports the DECLINED return code.
*) Feature: the ngx_http_dav_module supports the incoming "Date" header
line for the PUT method.
*) Feature: the "ssi" directive is available inside the "if" block.
*) Bugfix: a segmentation fault occurred if there was an "index"
directive with variables and the first index name was without
variables; the bug had appeared in 0.1.29.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Aug 2006 10:39:17 +0000 |
parents | 417a087c9c4d |
children | 3ba82806ec9a |
rev | line source |
---|---|
509 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_SETPROCTITLE_H_INCLUDED_ | |
8 #define _NGX_SETPROCTITLE_H_INCLUDED_ | |
9 | |
10 | |
11 #if (NGX_HAVE_SETPROCTITLE) | |
12 | |
13 /* FreeBSD, NetBSD, OpenBSD */ | |
14 | |
15 #define ngx_init_setproctitle(log) | |
16 #define ngx_setproctitle setproctitle | |
17 | |
18 | |
515 | 19 #else /* !NGX_HAVE_SETPROCTITLE */ |
509 | 20 |
515 | 21 #if !defined NGX_SETPROCTITLE_USES_ENV |
509 | 22 |
23 #if (NGX_SOLARIS) | |
24 | |
515 | 25 #define NGX_SETPROCTITLE_USES_ENV 1 |
509 | 26 #define NGX_SETPROCTITLE_PAD ' ' |
27 | |
28 ngx_int_t ngx_init_setproctitle(ngx_log_t *log); | |
29 void ngx_setproctitle(char *title); | |
30 | |
515 | 31 #elif (NGX_LINUX) || (NGX_DARWIN) |
509 | 32 |
515 | 33 #define NGX_SETPROCTITLE_USES_ENV 1 |
34 #define NGX_SETPROCTITLE_PAD '\0' | |
35 | |
36 ngx_int_t ngx_init_setproctitle(ngx_log_t *log); | |
37 void ngx_setproctitle(char *title); | |
38 | |
39 #else | |
509 | 40 |
41 #define ngx_init_setproctitle(log) | |
42 #define ngx_setproctitle(title) | |
43 | |
515 | 44 #endif /* OSes */ |
45 | |
46 #endif /* NGX_SETPROCTITLE_USES_ENV */ | |
47 | |
48 #endif /* NGX_HAVE_SETPROCTITLE */ | |
509 | 49 |
50 | |
51 #endif /* _NGX_SETPROCTITLE_H_INCLUDED_ */ |