extending wait4(2) or waitid(2) linux syscall
Dave Martin
Dave.Martin@arm.com
Fri Nov 16 14:26:00 GMT 2018
On Fri, Nov 16, 2018 at 02:40:49PM +0100, Florian Weimer wrote:
> * 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).
True, though this is a problem with global resources too.
I guess I need to go and read the slides to understand the broader
context here. (Is strace a library?)
Cheers
---Dave
More information about the Libc-alpha
mailing list