Mercurial > hg > nginx
comparison src/os/win32/ngx_process_cycle.c @ 2908:234a8248812c
log GetExitCodeProcess()'s errno
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 02 Jun 2009 14:26:18 +0000 |
parents | 78342383cb6e |
children | e7278e647f1a |
comparison
equal
deleted
inserted
replaced
2907:4f5753877376 | 2908:234a8248812c |
---|---|
493 if (ngx_processes[n].handle != h) { | 493 if (ngx_processes[n].handle != h) { |
494 continue; | 494 continue; |
495 } | 495 } |
496 | 496 |
497 if (GetExitCodeProcess(h, &code) == 0) { | 497 if (GetExitCodeProcess(h, &code) == 0) { |
498 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, | 498 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, |
499 "GetExitCodeProcess(%P) failed", | 499 "GetExitCodeProcess(%P) failed", |
500 ngx_processes[n].pid); | 500 ngx_processes[n].pid); |
501 } | 501 } |
502 | 502 |
503 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, | 503 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, |