Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4758 - trunk/src/os/win32

Anonymous User
July 23, 2012 12:38PM
Author: mdounin
Date: 2012-07-23 16:37:24 +0000 (Mon, 23 Jul 2012)
New Revision: 4758
URL: http://trac.nginx.org/nginx/changeset/4758/nginx

Log:
Win32: fixed cpu hog after process startup failure.

If ngx_spawn_process() failed while starting a process, the handle of a
handle of a processes was closed but left non-NULL in the ngx_processes[]
array. The handle later was used in WaitForMultipleObjects() (if there
were multiple worker processes configured and at least one worker process
was started successfully), resulting in infinite loop.

Reported by Ricardo V G:
http://mailman.nginx.org/pipermail/nginx-devel/2012-July/002494.html


Modified:
trunk/src/os/win32/ngx_process.c

Modified: trunk/src/os/win32/ngx_process.c
===================================================================
--- trunk/src/os/win32/ngx_process.c 2012-07-20 08:21:59 UTC (rev 4757)
+++ trunk/src/os/win32/ngx_process.c 2012-07-23 16:37:24 UTC (rev 4758)
@@ -196,6 +196,7 @@

if (ngx_processes[s].handle) {
ngx_close_handle(ngx_processes[s].handle);
+ ngx_processes[s].handle = NULL;
}

return NGX_INVALID_PID;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4758 - trunk/src/os/win32

Anonymous User 1146 July 23, 2012 12:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 235
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready