Re: [LEDE-DEV] [PATCH libubox 1/2] uloop: Fix race condition in SIGCHLD handling

2017-09-13 Thread Yousong Zhou
On 12 September 2017 at 19:12, Michal Sojka wrote: > When uloop_process_add() is called outside of uloop_run(), i.e. not > from a callback (which is the case of at least utrace and ujail), > child events can be missed. The reason is that when SIGCHILD handler > is installed in uloop_run(), after t

[LEDE-DEV] [PATCH libubox 1/2] uloop: Fix race condition in SIGCHLD handling

2017-09-12 Thread Michal Sojka
When uloop_process_add() is called outside of uloop_run(), i.e. not from a callback (which is the case of at least utrace and ujail), child events can be missed. The reason is that when SIGCHILD handler is installed in uloop_run(), after the uloop_process_add() is called, then an initial signal cou