Hello!
2016-02-05 19:30 GMT-08:00 Bingyu Song:
> 这个是nginx 打印出的日志然后退出,当然不会产生core 了
> if (signo == SIGCHLD) {
> ngx_process_get_status();
> }
> ngx_process_get_status:
> if (WTERMSIG(status)) {
> #ifdef WCOREDUMP
> ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
> "%s %P exited on signal %d%s",
> process, pid, WTERMSIG(status),
> WCOREDUMP(status) ? " (core dumped)" : "");
> #else
> ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
> "%s %P exited on signal %d",
> process, pid, WTERMSIG(status));
> #endif
这个不相干,是 master 进程接收到 worker 进程的 SIGCHLD 信号,而 core 的是 worker 进程。所以该怎么
core 怎么 core. 我们一直有在生产环境启用 NGINX 的 core dump. 一直工作得很好。
Best regards,
-agentzh