Mercurial > hg > nginx-vendor-1-0
comparison src/core/ngx_cycle.c @ 270:6eb1e38f0f1f NGINX_0_5_5
nginx 0.5.5
*) Change: the -v switch does not show compiler information any more.
*) Feature: the -V switch.
*) Feature: the "worker_rlimit_core" directive supports size in K, M,
and G.
*) Bugfix: the nginx.pm module now could be installed by an
unprivileged user.
*) Bugfix: a segmentation fault might occur if the $r->request_body or
$r->request_body_file methods were used.
*) Bugfix: the ppc platform specific bugs.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sun, 24 Dec 2006 00:00:00 +0300 |
parents | 6ae1357b7b7c |
children | 29a6403156b0 |
comparison
equal
deleted
inserted
replaced
269:aa9c0062124d | 270:6eb1e38f0f1f |
---|---|
757 ngx_create_pidfile(ngx_str_t *name, ngx_log_t *log) | 757 ngx_create_pidfile(ngx_str_t *name, ngx_log_t *log) |
758 { | 758 { |
759 size_t len; | 759 size_t len; |
760 ngx_uint_t trunc; | 760 ngx_uint_t trunc; |
761 ngx_file_t file; | 761 ngx_file_t file; |
762 u_char pid[NGX_INT64_LEN]; | 762 u_char pid[NGX_INT64_LEN + 2]; |
763 | 763 |
764 ngx_memzero(&file, sizeof(ngx_file_t)); | 764 ngx_memzero(&file, sizeof(ngx_file_t)); |
765 | 765 |
766 file.name = *name; | 766 file.name = *name; |
767 file.log = log; | 767 file.log = log; |
776 ngx_open_file_n " \"%s\" failed", file.name.data); | 776 ngx_open_file_n " \"%s\" failed", file.name.data); |
777 return NGX_ERROR; | 777 return NGX_ERROR; |
778 } | 778 } |
779 | 779 |
780 if (!ngx_test_config) { | 780 if (!ngx_test_config) { |
781 len = ngx_sprintf(pid, "%P%N", ngx_pid) - pid; | 781 len = ngx_snprintf(pid, NGX_INT64_LEN + 2, "%P%N", ngx_pid) - pid; |
782 | 782 |
783 if (ngx_write_file(&file, pid, len, 0) == NGX_ERROR) { | 783 if (ngx_write_file(&file, pid, len, 0) == NGX_ERROR) { |
784 return NGX_ERROR; | 784 return NGX_ERROR; |
785 } | 785 } |
786 } | 786 } |