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 <rep...@bugs.python.org> <http://bugs.python.org/issue16105> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com