Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:SLE_11
python.6852
python-2.6.9-popen-poll.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-2.6.9-popen-poll.patch of Package python.6852
# HG changeset patch # User Florent Xicluna <florent.xicluna@gmail.com> # Date 1268005743 0 # Node ID 41aef062d52931f5c6e43389ad0be2c7335d2fec # Parent 4660387b9b35233168b8f7dd08dee671190b032b Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717. It should fix transient failures on test_multiprocessing. Index: Python-2.6.9/Lib/multiprocessing/forking.py =================================================================== --- Python-2.6.9.orig/Lib/multiprocessing/forking.py 2013-10-29 16:04:37.000000000 +0100 +++ Python-2.6.9/Lib/multiprocessing/forking.py 2015-02-11 14:11:10.418763249 +0100 @@ -103,7 +103,12 @@ def poll(self, flag=os.WNOHANG): if self.returncode is None: - pid, sts = os.waitpid(self.pid, flag) + try: + pid, sts = os.waitpid(self.pid, flag) + except os.error: + # Child process not yet created. See #1731717 + # e.errno == errno.ECHILD == 10 + return None if pid == self.pid: if os.WIFSIGNALED(sts): self.returncode = -os.WTERMSIG(sts)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor