log GetExitCodeProcess()'s errno

This commit is contained in:
Igor Sysoev 2009-06-02 14:26:18 +00:00
parent 80027fc0a2
commit 130690fceb

View File

@ -495,7 +495,7 @@ ngx_reap_worker(ngx_cycle_t *cycle, HANDLE h)
}
if (GetExitCodeProcess(h, &code) == 0) {
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
"GetExitCodeProcess(%P) failed",
ngx_processes[n].pid);
}