[issue11891] Poll call in multiprocessing/forking.py is not thread safe. Results in "OSError: [Errno 10] No child processes" exceptions.

2011-04-20 Thread Gary Yee
Gary Yee added the comment: It looks like this has been addressed in the svn trunk as part of bug: #1731717. I was using version 2.6.5. Any chance that this gets backported? -- ___ Python tracker <http://bugs.python.org/issue11

[issue11891] Poll call in multiprocessing/forking.py is not thread safe. Results in "OSError: [Errno 10] No child processes" exceptions.

2011-04-20 Thread Gary Yee
Gary Yee added the comment: Here's how I changed poll() in multiprocessing/forking.py: def poll(self, flag=os.WNOHANG): if self.returncode is None: try: pid, sts = os.waitpid(self.pid, flag) except OSErr

[issue11891] Poll call in multiprocessing/forking.py is not thread safe. Results in "OSError: [Errno 10] No child processes" exceptions.

2011-04-20 Thread Gary Yee
New submission from Gary Yee : Background: I'm using multiprocessing not to run jobs in parallel, but to run functions in a different process space so they can be done as a different user. I am thus using multiprocessing in a multithreaded (Linux) application. Problem: In multiproce