[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d984dfe8c34e by Victor Stinner in branch 'default': Issue #22042: signal.set_wakeup_fd(fd) now raises an exception if the file http://hg.python.org/cpython/rev/d984dfe8c34e -- ___ Python tracker

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-08-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22042 ___

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-08-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5f5553f219e by Victor Stinner in branch 'default': Issue #22042: Fix test_signal on Windows http://hg.python.org/cpython/rev/f5f5553f219e -- ___ Python tracker rep...@bugs.python.org

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-29 Thread STINNER Victor
STINNER Victor added the comment: On Windows, it looks like it's not possible to test if a socket handle (int, not a socket object) is blocking or not. The WSAIsBlocking() function was removed, it's only possible to set the flag using ioctlsocket(). --

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-29 Thread STINNER Victor
STINNER Victor added the comment: I commited my patch to support sockets in signal.set_wakeup_fd() on Windows. I updated my patch. It doesn't change signal.set_wakeup_fd() on Windows anymore. It only raises an exception on POSIX if the file descriptor is blocking. On Windows, it's not

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: signal.set_wakeup_fd(fd): set the fd to non-blocking mode - signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode ___ Python tracker rep...@bugs.python.org

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file36054/os_blocking-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22042 ___

[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode

2014-07-27 Thread STINNER Victor
STINNER Victor added the comment: signal_check_nonblocking.patch: signal.set_wakeup_fd() now raises a ValueError if the file descriptor is in blocking mode. The patch depends on the patch of the issue #22054. I didn't test the patch on Windows, but all calls to signal.set_wakeup_fd() must