<div dir="ltr">Signal handler is ngx_signal_handler which in worker process does nothing but log exit code and release possible holded mutexes, only master process reap child by setting ngx_reap to 1 and spawn it in ngx_reap_children if registed in ngx_processes(worker, loader, manager)<div><br></div><div>So no, you can't, but you can implement this logic yourself.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 15, 2015 at 9:22 PM, Nelson, Erik - 2 <span dir="ltr"><<a href="mailto:erik.l.nelson@bankofamerica.com" target="_blank">erik.l.nelson@bankofamerica.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I fork + exec child processes and I would like to get some kind of notification when they exit. However, the nginx signal handler reaps my child processes and logs a message like<br>
<br>
2015/05/14 14:12:24 [notice] 28033#0: signal 17 (SIGCHLD) received<br>
2015/05/14 14:12:24 [notice] 28033#0: unknown process 28044 exited with code 1<br>
<br>
Nginx knows that this process isn't one of its own children- is there some way I can either register interest in my child process, or get an event sent to me somehow on child exit?<br>
<br>
FWIW, I'm using nginx-1.7.7 with the ngx_lua extension on an older RedHat server.<br>
<br>
Thanks<br>
<br>
Erik<br>
<br>
----------------------------------------------------------------------<br>
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at <a href="http://www.bankofamerica.com/emaildisclaimer" target="_blank">http://www.bankofamerica.com/emaildisclaimer</a>. If you are not the intended recipient, please delete this message.<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small">居佳佳</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">以上</div></div></div>
</div>