Mercurial > hg > nginx
comparison src/os/unix/ngx_setproctitle.c @ 455:295d97d70c69 release-0.1.2
nginx-0.1.2-RELEASE import
*) 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; the bug had 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; the bug had 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 <igor@sysoev.ru> |
---|---|
date | Thu, 21 Oct 2004 15:34:38 +0000 |
parents | 23fb87bddda1 |
children | 975f62e77f02 |
comparison
equal
deleted
inserted
replaced
454:2ff9cff0f469 | 455:295d97d70c69 |
---|---|
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; |