Owner of spawned process in threads

Piet van Oostrum piet at cs.uu.nl
Thu Oct 4 17:21:35 EDT 2007


>>>>> "Vishal Sethia" <sethia.vishal at gmail.com> (VS) wrote:

>VS> Just trying to understand the behaviour of spawn. Consider I have a
>VS> function which creates two threads. And in one of the threads I make a
>VS> call to pexpect.spawn. spawn would fork and create a new new child In
>VS> this case who becomes the owner of this child process.

>VS> Is it the thread that spawned becomes the owner or is the main program
>VS> becomes the owner of that child process.

Owner (parent) is the process, not a thread.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list