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 pitrou
Recipients asksol, brian.curtin, gregory.p.smith, jnoller, neologix, pitrou
Date 2011-05-09.18:39:21
SpamBayes Score 2.909752e-05
Marked as misclassified No
Message-id <1304966363.67.0.392142624447.issue12040@psf.upfronthosting.co.za>
In-reply-to
Content
This patch exposes a new read-only property of multiprocessing.Process objects, named "sentinel".
As the doc indicates, this is a file descriptor undex Unix, and a handle under Windows. Both are suitable for flexible polling/waiting with the appropriate OS primitives. They become ready when the process has ended.
Under Unix, this also replaces the repeated polling in _Popen.wait() (called from Process.join()) with a regular select() call, making it friendlier with CPU low-power states.

This is necessary for issue9205.
History
Date User Action Args
2011-05-09 18:39:23pitrousetrecipients: + pitrou, gregory.p.smith, jnoller, brian.curtin, asksol, neologix
2011-05-09 18:39:23pitrousetmessageid: <1304966363.67.0.392142624447.issue12040@psf.upfronthosting.co.za>
2011-05-09 18:39:21pitroulinkissue12040 messages
2011-05-09 18:39:21pitroucreate