diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-04 20:32:09 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-04 20:32:09 +0000 |
commit | 9a864bd8f87efd0fa23f552d4277475dd76bcea4 (patch) | |
tree | 748c76cb067e50ae033389a0590fee8b4d76d222 /src/os/unix/ngx_process.c | |
parent | c972a3fe2774c329cd64fdaf36f51e28a130bf4c (diff) | |
download | nginx-9a864bd8f87efd0fa23f552d4277475dd76bcea4.tar.gz nginx-9a864bd8f87efd0fa23f552d4277475dd76bcea4.zip |
nginx-0.0.3-2004-04-05-00:32:09 import
Diffstat (limited to 'src/os/unix/ngx_process.c')
-rw-r--r-- | src/os/unix/ngx_process.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index d49ba3258..8736da781 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -1,6 +1,7 @@ #include <ngx_config.h> #include <ngx_core.h> +#include <ngx_event.h> static void ngx_execute_proc(ngx_cycle_t *cycle, void *data); @@ -142,6 +143,18 @@ void ngx_process_get_status() return; } + + if (ngx_accept_mutex_ptr) { + + /* + * unlock the accept mutex if the abnormally exited process + * held it + */ + + ngx_atomic_cmp_set(ngx_accept_mutex_ptr, pid, 0); + } + + one = 1; process = ""; |