comparison src/os/unix/ngx_process.c @ 234:cd71b95716b4

nginx-0.0.1-2004-01-20-23:40:08 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 20 Jan 2004 20:40:08 +0000
parents 2ba3477070ac
children e885208c518b
comparison
equal deleted inserted replaced
233:4eaafcd57be7 234:cd71b95716b4
233 } else { 233 } else {
234 ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, 0, 234 ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, 0,
235 "%s " PID_T_FMT " exited with code %d", 235 "%s " PID_T_FMT " exited with code %d",
236 process, pid, WEXITSTATUS(status)); 236 process, pid, WEXITSTATUS(status));
237 } 237 }
238 } 238
239 } 239 if (WEXITSTATUS(status) == 2 && ngx_processes[i].respawn) {
240 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
241 "%s " PID_T_FMT
242 " exited with fatal code %d and could not respawn",
243 process, pid, WEXITSTATUS(status));
244 ngx_processes[i].respawn = 0;
245 }
246 }
247 }