Thread (20 messages) 20 messages, 8 authors, 2018-11-28

Re: extending wait4(2) or waitid(2) linux syscall

From: Florian Weimer <hidden>
Date: 2018-11-16 13:40:49

* Dave Martin:
The traditional way would be install a handler for SIGCHLD and
do a sigsuspend()/pselect()/ppoll().  Then when the suspend() returns,
you pump the status of any children with wait*(..., WNOHANG).

Does that not work for you for some reason?
Changing signal handlers is not what a library should do because they
are process-global (not even thread-specific).

Thanks,
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help