Welcome! Log In Create A New Profile

Advanced

Re: notification on child process exit

J.J J
May 17, 2015 02:56AM
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)

So no, you can't, but you can implement this logic yourself.

On Fri, May 15, 2015 at 9:22 PM, Nelson, Erik - 2 <
erik.l.nelson@bankofamerica.com> wrote:

> 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
>
> 2015/05/14 14:12:24 [notice] 28033#0: signal 17 (SIGCHLD) received
> 2015/05/14 14:12:24 [notice] 28033#0: unknown process 28044 exited with
> code 1
>
> 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?
>
> FWIW, I'm using nginx-1.7.7 with the ngx_lua extension on an older RedHat
> server.
>
> Thanks
>
> Erik
>
> ----------------------------------------------------------------------
> 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
> http://www.bankofamerica.com/emaildisclaimer. If you are not the
> intended recipient, please delete this message.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
居佳佳

以上
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

about ssl support of nginx

hy05190134 May 13, 2015 10:26PM

Re: about ssl support of nginx

Maxim Dounin May 14, 2015 12:22PM

Re: about ssl support of nginx

hy05190134 May 15, 2015 02:01AM

notification on child process exit

Nelson, Erik - 2 May 15, 2015 09:24AM

Re: notification on child process exit

J.J J May 17, 2015 02:56AM

RE: notification on child process exit

Nelson, Erik - 2 May 17, 2015 10:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready