diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-11-25 14:04:03 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-11-25 14:04:03 +0300 |
commit | 7f31a2098dcbd39ca60467f118e3f38c4e67ce5b (patch) | |
tree | a9b36c13880291aa2ffb007ad966e783b000ecc0 /src/os/unix/ngx_process.c | |
parent | 40747ad861d1645febf4c3a43f5f0c3489decbf0 (diff) |
use copied strerror() messages and autoconfigured sys_nerr value
Diffstat (limited to 'src/os/unix/ngx_process.c')
-rw-r--r-- | src/os/unix/ngx_process.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index 4574dfaf3..605558786 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -479,17 +479,15 @@ ngx_process_get_status(void) */ if (err == NGX_ECHILD) { - ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, 0, - "waitpid() failed (%d: %s)", - err, ngx_sigsafe_strerror(err)); + ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, err, + "waitpid() failed"); return; } #endif - ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, - "waitpid() failed (%d: %s)", - err, ngx_sigsafe_strerror(err)); + ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err, + "waitpid() failed"); return; } |