[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [OT] poll() vs. AIO
From:       Laurent Bercot <ska-dietlibc () skarnet ! org>
Date:       2011-08-22 7:55:53
Message-ID: 20110822075553.GA10175 () skarnet ! org
[Download RAW message or body]

> Just to note that POSIX does specify sigaction().
> 
> Signal handler set using this will get additional siginfo_t structure
> where you get all that info for SIGCHLD: child's PID, uid, exit code, etc.

 Not all systems support realtime signals though (which are the ones with
a payload in the siginfo_t structure).


> You can also specify SA_NOCLDWAIT so the child is never turned to zombie
> (but you still get the signal with the details), and call to waitpid()
> is not needed.

 Which opens up a race condition: a pid does not identify a unique
process anymore. Until we get to 64-bit pids, SA_NOCLDWAIT should
basically never be used.

-- 
 Laurent
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic