This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Gary.Yee
Recipients Gary.Yee
Date 2011-04-20.17:21:47
SpamBayes Score 0.00037919468
Marked as misclassified No
Message-id <1303320108.31.0.0848391851436.issue11891@psf.upfronthosting.co.za>
In-reply-to
Content
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 OSError, e:
                    if e.errno == 10:
                        return self.returncode
                    else:
                        raise
                if pid == self.pid:
                    if os.WIFSIGNALED(sts):
                        self.returncode = -os.WTERMSIG(sts)
                    else:
                        assert os.WIFEXITED(sts)
                        self.returncode = os.WEXITSTATUS(sts)
            return self.returncode
History
Date User Action Args
2011-04-20 17:21:48Gary.Yeesetrecipients: + Gary.Yee
2011-04-20 17:21:48Gary.Yeesetmessageid: <1303320108.31.0.0848391851436.issue11891@psf.upfronthosting.co.za>
2011-04-20 17:21:47Gary.Yeelinkissue11891 messages
2011-04-20 17:21:47Gary.Yeecreate