Re: Multiprocessing zombie processes

2010-07-26 Thread Michele Simionato
On Jul 25, 1:11 am, Navkirat Singh wrote: > OK I wanted zombie processes and have been able to regenerate them with > multiprocessing. Now lets see how I can handle them. The multiprocessing docs say: """ Joining zombie processes On Unix when a process finishes but has not been joined it becom

Re: Multiprocessing zombie processes

2010-07-26 Thread Chris Rebert
On Mon, Jul 26, 2010 at 3:30 AM, Lawrence D'Oliveiro wrote: > In message , Chris > Rebert wrote: > >> "Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. >> Frankenstein." >> >> Most people try to /avoid/ making zombies. > > Is there some connection between Frankenstein and zombies?

Re: Multiprocessing zombie processes

2010-07-26 Thread Lawrence D'Oliveiro
In message , Chris Rebert wrote: > "Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. > Frankenstein." > > Most people try to /avoid/ making zombies. Is there some connection between Frankenstein and zombies? -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
On 25-Jul-2010, at 5:25 AM, Cameron Simpson wrote: > [ Please don't top post. Post below so that things read like a > conversation. (And trim excess quoted junk.) It doesn't take long and > makes things a lot easier for your readers. ] > > On 25Jul2010 04:41, Navkirat Singh wrote: > | On 25-J

Re: Multiprocessing zombie processes

2010-07-24 Thread Cameron Simpson
[ Please don't top post. Post below so that things read like a conversation. (And trim excess quoted junk.) It doesn't take long and makes things a lot easier for your readers. ] On 25Jul2010 04:41, Navkirat Singh wrote: | On 25-Jul-2010, at 4:37 AM, Navkirat Singh wrote: | > I have been medd

Re: Multiprocessing zombie processes

2010-07-24 Thread Thomas Jollans
On 07/25/2010 01:43 AM, Navkirat Singh wrote: > I want to kill Zombiesso first I have to create them...simple law of > nature You can't kill a zombie. That's why we call them zombies, as opposed to, say, daemons. > > > On 25-Jul-2010, at 5:08 AM, Chris Rebert wrote: > >> On Sat, Jul 2

Re: Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
I want to kill Zombiesso first I have to create them...simple law of nature On 25-Jul-2010, at 5:08 AM, Chris Rebert wrote: > On Sat, Jul 24, 2010 at 4:11 PM, Navkirat Singh wrote: >> OK I wanted zombie processes > >> Now lets see how I can handle them. > > "Paging Dr. Frankenstein.

Re: Multiprocessing zombie processes

2010-07-24 Thread Chris Rebert
On Sat, Jul 24, 2010 at 4:11 PM, Navkirat Singh wrote: > OK I wanted zombie processes > Now lets see how I can handle them. "Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. Frankenstein." Cheers, Chris -- Most people try to /avoid/ making zombies. -- http://mail.python.org/mai

Re: Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
OK I wanted zombie processes and have been able to regenerate them with multiprocessing. Now lets see how I can handle them. Nav On 25-Jul-2010, at 4:37 AM, Navkirat Singh wrote: > Hi, > > I have been meddling around with forking and multiprocessing. Now both of > them spawn new processes fro

Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
Hi, I have been meddling around with forking and multiprocessing. Now both of them spawn new processes from parent (atleast from what I have understood). I have been able to reproduce a zombie state in a fork with: import os,time print('before fork',os.getpid()) pid = os.fork() if pid: