LWN.net Logo

3.4 Merge window part 2

3.4 Merge window part 2

Posted Mar 29, 2012 19:25 UTC (Thu) by kjp (subscriber, #39639)
Parent article: 3.4 Merge window part 2

Uhm, I'm not quite getting all the details on the PR_SET_CHILD_SUBREAPER thing. Is that going to break existing code that does:

if (getppid() == 1) /* parent died already? */


(Log in to post comments)

3.4 Merge window part 2

Posted Mar 29, 2012 19:28 UTC (Thu) by kjp (subscriber, #39639) [Link]

By the way, thats for existing user client code we have to detect when the main gui process dies.

prctl(PR_SET_PDEATHSIG, SIGHUP);
if (getppid() == 1) /* parent died already? */
return 0;

3.4 Merge window part 2

Posted Mar 29, 2012 20:26 UTC (Thu) by alecs1 (guest, #46699) [Link]

You'd have to use the option to get into this situation, in my understanding. Remember that Linus is very adverse to breaking existing programs, and this is my main assumption.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds