[issue16105] Pass read only FD to signal.set_wakeup_fd

Charles-François Natali report at bugs.python.org
Wed Oct 3 07:51:51 CEST 2012


Charles-François Natali added the comment:

> I agree with Felipe that issues here can be difficult to diagnose. For example the fd could get mistakingly closed, but the write() EBADF would then be ignored and the expected signal wakeups would be lost.

Yeah, but it's also completely possible that the saved fd now points
to another file descriptor, and you end up corrupting a file, without
getting any error at all, and not getting signal wakeups. This API is
really fragile and dangerous, and warrants care anyway...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16105>
_______________________________________


More information about the Python-bugs-list mailing list