This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients Ernst.Sjöstrand, amaury.forgeotdarc, brian.curtin, erickt, giampaolo.rodola, guettli, neologix, vstinner, xuanji
Date 2011-04-26.21:09:52
SpamBayes Score 0.004477792
Marked as misclassified No
Message-id <1303852193.31.0.0822730569267.issue5115@psf.upfronthosting.co.za>
In-reply-to
Content
Note that the setpgid creation part is now somewhat redundant with Popen's start_new_session flag (which calls setsid). Also, this should probably be an option, since with that patch every subprocess is in its own process group.

> I was wondering... what if process A runs a subprocess B which runs a
> subprocess C. Is C still considered a children of A and gets killed as
> well?

No.
When setpgid/setsid is called, a new group is created, so process C will be not be part of the same group as B.
History
Date User Action Args
2011-04-26 21:09:53neologixsetrecipients: + neologix, guettli, amaury.forgeotdarc, vstinner, giampaolo.rodola, erickt, brian.curtin, xuanji, Ernst.Sjöstrand
2011-04-26 21:09:53neologixsetmessageid: <1303852193.31.0.0822730569267.issue5115@psf.upfronthosting.co.za>
2011-04-26 21:09:52neologixlinkissue5115 messages
2011-04-26 21:09:52neologixcreate