[issue22018] Add a new signal.set_wakeup_socket() function
STINNER Victor
report at bugs.python.org
Wed Jul 23 02:30:43 CEST 2014
STINNER Victor added the comment:
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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22018>
_______________________________________
More information about the Python-bugs-list
mailing list