[issue16992] signal.set_wakeup_fd(400) crashes on Windows

2013-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2adc83b4738f by Benjamin Peterson in branch '3.3': check windows fd validity (closes #16992) http://hg.python.org/cpython/rev/2adc83b4738f New changeset 1a1989021451 by Benjamin Peterson in branch '2.7': check windows fd validity (closes #16992) htt

[issue16992] signal.set_wakeup_fd(400) crashes on Windows

2013-01-17 Thread Guido van Rossum
New submission from Guido van Rossum: On Windows I get an immediate crash with the following code: import signal signal.set_wakeup_fd(400) I think there's a range check missing somewhere. (I found this because I was passing a socket's fileno() -- my bug, but shouldn't crash.) -- mess