Mercurial > hg > nginx-vendor-0-5
comparison src/os/unix/ngx_setproctitle.c @ 4:4b2dafa26fe2 NGINX_0_1_2
nginx 0.1.2
*) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS
options in configure.
*) Feature: the server_name directive supports *.domain.tld.
*) Bugfix: the portability improvements.
*) Bugfix: if configuration file was set in command line, the
reconfiguration was impossible; bug appeared in 0.1.1.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
*) Bugfix: with sendfile the response was not recoded according to the
charset module directives; bug appeared in 0.1.1.
*) Bugfix: very seldom bug in the kqueue processing.
*) Bugfix: the gzip module compressed the proxied responses that was
already compressed.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 21 Oct 2004 00:00:00 +0400 |
parents | cc9f381affaa |
children | 41ccba1aba45 |
comparison
equal
deleted
inserted
replaced
3:8beaf7b3241f | 4:4b2dafa26fe2 |
---|---|
74 | 74 |
75 void ngx_setproctitle(char *title) | 75 void ngx_setproctitle(char *title) |
76 { | 76 { |
77 u_char *p; | 77 u_char *p; |
78 | 78 |
79 #if (SOLARIS) | 79 #if (NGX_SOLARIS) |
80 | 80 |
81 ngx_int_t i; | 81 ngx_int_t i; |
82 size_t size; | 82 size_t size; |
83 | 83 |
84 #endif | 84 #endif |
88 p = ngx_cpystrn((u_char *) ngx_os_argv[0], "nginx: ", | 88 p = ngx_cpystrn((u_char *) ngx_os_argv[0], "nginx: ", |
89 ngx_os_argv_last - ngx_os_argv[0]); | 89 ngx_os_argv_last - ngx_os_argv[0]); |
90 | 90 |
91 p = ngx_cpystrn(p, (u_char *) title, ngx_os_argv_last - (char *) p); | 91 p = ngx_cpystrn(p, (u_char *) title, ngx_os_argv_last - (char *) p); |
92 | 92 |
93 #if (SOLARIS) | 93 #if (NGX_SOLARIS) |
94 | 94 |
95 size = 0; | 95 size = 0; |
96 | 96 |
97 for (i = 0; i < ngx_argc; i++) { | 97 for (i = 0; i < ngx_argc; i++) { |
98 size += ngx_strlen(ngx_argv[i]) + 1; | 98 size += ngx_strlen(ngx_argv[i]) + 1; |