--nextPart3753753.ZylBTrGhIK Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday, January 22, 2011 16:53:29 Thiago Macieira wrote: > On Saturday, 22 de January de 2011 22:08:25 Christoph Bartoschek wrote: > > Am Samstag 22 Januar 2011 schrieb Thiago Macieira: > > > However, what I really want is that kernel developers give me a modern > > > way of finding out a process has exited. > >=20 > > Hi, I do not know whether it works as desired, but did you look at > > signalfd(2)? >=20 > Doesn't solve the problem. You still need to block the signals in all > threads signalfd can receive it. >=20 > It needs to be done without signals. Perhaps I'm missing something obvious, but what is missing from waitpid(2),= or=20 the more recent waitid(2)? Both of those allow you to wait for specific=20 processes. It would have to be done in an alternate thread to avoid blockin= g=20 but you've already mentioned using a separate thread to support the current= =20 SIGCHLD signal handler. Regards, - Michael Pyne --nextPart3753753.ZylBTrGhIK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQIcBAABCAAGBQJNO5eNAAoJEAuvDJx7auny4K8P/jl0JUmTs4qPY05gDbIcdd3b mPg4jR71oCbYPnMPAbgwpi4HKnmr99PMuQIF0uxlcWcmjJA++EDdXLF/ZOf+ja4h s7Ga7gw/FZ/rv2ZFbVfopjuMsXCfj9aH0zMsSUzozPzA7iW0ZiB//C857H19gMt2 2vnhw2blGR4kwUDAIv+SSgvHp8X1k8PQSCprtfhbUlEppO8vU+EwSNOiMj4W+BGr 4Bi/qt9xoVWaxfQRgD1hXClIYBWrjpvyuDWs00QXV/1FDHa9nKXRZvPndKSY9ThE hMWc6VO46nLpnsGGUIhnKx/FGt4sAaE7FwpV3bsFpVz3oXRGe7v+fEyTotcRAEKb 6zlFDGnbIV7Uhxkh/OG51qiT1hQauSIG88QAyFao+iUQo4hRL0rpeLiIRnbQKnzw H6FAg2l/VBIgHxhXoqI+8U/I9o9kG6p9TwdFLm45jRLeVXBPJXsPI1TI+9fSWV+G HJxduD0TfmGzQ624xUujxVBwPV+SjRp5SHqjsMvubBiIU7+G4a8XNDRbWDGSoKQ9 13O/a3HZk9vhR5KPp2f8XX+Rc6naR6PcKBi6dJCY+c87vsRVgtm8Z+N+K/kt5djK lEcOQI1tke6lT9GuzQe36udTTJojhK/99Gtm9Lz+d8+q7E0GAu9/KpeUXrJ1id04 IuyJQ2qahtn2lAB8P7Uh =BdsQ -----END PGP SIGNATURE----- --nextPart3753753.ZylBTrGhIK--