comparison src/os/unix/ngx_setproctitle.h @ 515:417a087c9c4d release-0.1.32

nginx-0.1.32-RELEASE import *) Bugfix: the arguments were omitted in the redirects, issued by the "rewrite" directive; the bug had appeared in 0.1.29. *) Feature: the "if" directive supports the captures in regular expressions. *) Feature: the "set" directive supports the variables and the captures of regular expressions. *) Feature: the "X-Accel-Redirect" response header line is supported in proxy and FastCGI mode.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 19 May 2005 13:25:22 +0000
parents 9b8c906f6e63
children 3ba82806ec9a
comparison
equal deleted inserted replaced
514:88d593732655 515:417a087c9c4d
14 14
15 #define ngx_init_setproctitle(log) 15 #define ngx_init_setproctitle(log)
16 #define ngx_setproctitle setproctitle 16 #define ngx_setproctitle setproctitle
17 17
18 18
19 #elif !defined NGX_SETPROCTITLE_USES_ENV 19 #else /* !NGX_HAVE_SETPROCTITLE */
20 20
21 #define NGX_SETPROCTITLE_USES_ENV 1 21 #if !defined NGX_SETPROCTITLE_USES_ENV
22 22
23 #if (NGX_SOLARIS) 23 #if (NGX_SOLARIS)
24 24
25 #define NGX_SETPROCTITLE_USES_ENV 1
25 #define NGX_SETPROCTITLE_PAD ' ' 26 #define NGX_SETPROCTITLE_PAD ' '
26
27 #elif (NGX_LINUX) || (NGX_DARWIN)
28
29 #define NGX_SETPROCTITLE_PAD '\0'
30
31 #endif
32 27
33 ngx_int_t ngx_init_setproctitle(ngx_log_t *log); 28 ngx_int_t ngx_init_setproctitle(ngx_log_t *log);
34 void ngx_setproctitle(char *title); 29 void ngx_setproctitle(char *title);
35 30
31 #elif (NGX_LINUX) || (NGX_DARWIN)
36 32
37 #else /* !NGX_SETPROCTITLE_USES_ENV */ 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
38 40
39 #define ngx_init_setproctitle(log) 41 #define ngx_init_setproctitle(log)
40 #define ngx_setproctitle(title) 42 #define ngx_setproctitle(title)
41 43
42 #endif 44 #endif /* OSes */
45
46 #endif /* NGX_SETPROCTITLE_USES_ENV */
47
48 #endif /* NGX_HAVE_SETPROCTITLE */
43 49
44 50
45 #endif /* _NGX_SETPROCTITLE_H_INCLUDED_ */ 51 #endif /* _NGX_SETPROCTITLE_H_INCLUDED_ */