Message223709
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. |
|
Date |
User |
Action |
Args |
2014-07-23 00:30:43 | vstinner | set | recipients:
+ vstinner, gvanrossum, loewis, pitrou, neologix, python-dev, yselivanov |
2014-07-23 00:30:43 | vstinner | set | messageid: <1406075443.13.0.704741239781.issue22018@psf.upfronthosting.co.za> |
2014-07-23 00:30:42 | vstinner | link | issue22018 messages |
2014-07-23 00:30:42 | vstinner | create | |
|