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 vstinner
Recipients gvanrossum, loewis, neologix, pitrou, python-dev, vstinner, yselivanov
Date 2014-07-23.00:30:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406075443.13.0.704741239781.issue22018@psf.upfronthosting.co.za>
In-reply-to
Content
I tried to modify signal.set_wakeup_socket() to automatically make the file descriptor non-blocking. Problem: fcntl() function and O_NONBLOCK flag don't exist on Windows. Non-blocking operations are only supported for sockets...

Calling a blocking function (write()) in a signal handler will probably block the application. So I don't think that it makes sense to support files in signal.set_wakeup_fd() on Windows. I guess that nobody used this function on Windows in fact.

I can probably simplify my patch to only support sockets on Windows.
History
Date User Action Args
2014-07-23 00:30:43vstinnersetrecipients: + vstinner, gvanrossum, loewis, pitrou, neologix, python-dev, yselivanov
2014-07-23 00:30:43vstinnersetmessageid: <1406075443.13.0.704741239781.issue22018@psf.upfronthosting.co.za>
2014-07-23 00:30:42vstinnerlinkissue22018 messages
2014-07-23 00:30:42vstinnercreate