Charles-François Natali added the comment: Here's an updated patch with a better logic: in the previous version - based on current poll-based implementation, the FD was inferred from the event (i.e. read ready -> stdout/stderr, write ready -> stderr). The new version directly checks the ready file object instead. I also added an extra safety in case an unknown FD is returned (which should never happen).
---------- nosy: +pitrou Added file: http://bugs.python.org/file32511/subprocess_selectors-3.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18923> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com