aboutsummaryrefslogtreecommitdiff
path: root/src/misc/ngx_cpp_test_module.cpp
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-07-23 16:37:24 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-07-23 16:37:24 +0000
commit9d5f5a0c76dc0aba74777b8afad95e2d6ed12354 (patch)
treec9c1828add30dd321f97d45e61a9e9f867ab6879 /src/misc/ngx_cpp_test_module.cpp
parent54ab41f27bc7e6cb09694c6e6f1fbc9a41034d1a (diff)
downloadnginx-9d5f5a0c76dc0aba74777b8afad95e2d6ed12354.tar.gz
nginx-9d5f5a0c76dc0aba74777b8afad95e2d6ed12354.zip
Win32: fixed cpu hog after process startup failure.
If ngx_spawn_process() failed while starting a process, the process handle 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
Diffstat (limited to 'src/misc/ngx_cpp_test_module.cpp')
0 files changed, 0 insertions, 0 deletions