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 SpecLad
Recipients SpecLad, giampaolo.rodola, njs, vstinner
Date 2019-12-09.21:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575928005.31.0.0102439322645.issue38630@roundup.psfhosted.org>
In-reply-to
Content
> I'm pretty sure you mean WNOWAIT, right?

Right.

> revalidate pid licenses

What does this mean?

> I think we can patch up this last race condition by adding yet one more lock

Wouldn't it be sufficient to add

if self.returncode is not None:
    return self.returncode

at the top of poll()?

(And in fact, you don't even need to add it, since an equivalent of this check is already there.)

I think this makes calling poll() from wait() unnecessary too.
History
Date User Action Args
2019-12-09 21:46:45SpecLadsetrecipients: + SpecLad, vstinner, giampaolo.rodola, njs
2019-12-09 21:46:45SpecLadsetmessageid: <1575928005.31.0.0102439322645.issue38630@roundup.psfhosted.org>
2019-12-09 21:46:45SpecLadlinkissue38630 messages
2019-12-09 21:46:45SpecLadcreate