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 brian.curtin, jnoller, pitrou, sbt, tim.golden
Date 2011-06-16.15:46:45
SpamBayes Score 6.4699e-06
Marked as misclassified No
Message-id <1308239190.3643.3.camel@localhost.localdomain>
In-reply-to <1308234862.44.0.262405628185.issue12328@psf.upfronthosting.co.za>
Content
> > Hmm, it seems to me that it should be done in _poll() instead. 
> > Otherwise, recv() will not be interruptible, will it?
> 
> Or maybe WaitForMultipleObjects() should be changed to also wait on
> sigint_event if called by the main thread.

Indeed, this may be even better.

> If it is an auto-reset event then we must worry about a non-main
> thread stealing the event.  Maybe _PyOS_SigintEvent() should return
> NULL if called by a non-main thread, and be documented with a loud
> usage warning.

You are right, we need a manual reset *or* we must ensure that every
user of _PyOS_SigintEvent only does so from the main thread.
History
Date User Action Args
2011-06-16 15:46:46pitrousetrecipients: + pitrou, tim.golden, jnoller, brian.curtin, sbt
2011-06-16 15:46:45pitroulinkissue12328 messages
2011-06-16 15:46:45pitroucreate