Re: os.fork leaving processes behind

2007-12-31 Thread Falcolas
On Dec 28, 12:11 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > I'd try to use any of the existing server implementations in > SocketServer.py, but if you insist on using your own, look at the > ForkingMixin class as an example of using waitpid() to avoid having zombie > processes. > > -- > G

Re: os.fork leaving processes behind

2007-12-27 Thread Gabriel Genellina
En Thu, 27 Dec 2007 21:36:36 -0300, Falcolas <[EMAIL PROTECTED]> escribió: > This may be more of a Linux question, but it relates to how Python > forks... Yes; every book describing how to use fork tells about zombie processes and the wait/waitpid functions. Just do the same thing in Python. >

os.fork leaving processes behind

2007-12-27 Thread Falcolas
Hi all, This may be more of a Linux question, but it relates to how Python forks... Today, I implemented a pretty simple listener script using os.fork. The script runs fine, and performs as expected, but the process table is left with an odd entry for every fork called. I'm running on Slackware