Mercurial > hg > nginx-vendor-0-8
comparison src/os/unix/ngx_setproctitle.c @ 56:3050baa54a26 NGINX_0_1_28
nginx 0.1.28
*) Bugfix: nginx hogs CPU while proxying the huge files.
*) Bugfix: nginx could not be built by gcc 4.0 on Linux.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 08 Apr 2005 00:00:00 +0400 |
parents | 72eb30262aac |
children | b55cbf18157e |
comparison
equal
deleted
inserted
replaced
55:729de7d75018 | 56:3050baa54a26 |
---|---|
86 | 86 |
87 #endif | 87 #endif |
88 | 88 |
89 ngx_os_argv[1] = NULL; | 89 ngx_os_argv[1] = NULL; |
90 | 90 |
91 p = ngx_cpystrn((u_char *) ngx_os_argv[0], "nginx: ", | 91 p = ngx_cpystrn((u_char *) ngx_os_argv[0], (u_char *) "nginx: ", |
92 ngx_os_argv_last - ngx_os_argv[0]); | 92 ngx_os_argv_last - ngx_os_argv[0]); |
93 | 93 |
94 p = ngx_cpystrn(p, (u_char *) title, ngx_os_argv_last - (char *) p); | 94 p = ngx_cpystrn(p, (u_char *) title, ngx_os_argv_last - (char *) p); |
95 | 95 |
96 #if (NGX_SOLARIS) | 96 #if (NGX_SOLARIS) |