From 85ef94ba857237882c7e68dea87a1dbc68a38fe7 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 23 Jun 2005 13:41:06 +0000 Subject: nginx-0.1.37-RELEASE import *) Change: now the "\n" is added to the end of the "nginx.pid" file. *) Bugfix: the responses may be transferred not completely, if many parts or the big parts were included by SSI. *) Bugfix: if all backends had returned the 404 reponse and the "http_404" parameter of the "proxy_next_upstream" or "fastcgi_next_upstream" directives was used, then nginx started to request all backends again. --- src/core/ngx_cycle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_cycle.c') diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 57806437a..b67223a69 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -744,7 +744,7 @@ ngx_int_t ngx_create_pidfile(ngx_cycle_t *cycle, ngx_cycle_t *old_cycle) } if (!ngx_test_config) { - len = ngx_sprintf(pid, "%P", ngx_pid) - pid; + len = ngx_sprintf(pid, "%P%N", ngx_pid) - pid; if (ngx_write_file(&file, pid, len, 0) == NGX_ERROR) { return NGX_ERROR; -- cgit