You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use a stack of self._fds_to_close to prevent double closes (#481)
* Add test for preexec_fn fd double close issue
* use a stack of self._fds_to_close to prevent double closes
and make tests easier to write because the close order is deterministic
and in the order that opens happen in
this should also be a bit faster because list.append is faster
than set.add and we skip a call to os_close(-1) and catching an
OSError exception
* DRY os_dup call
Co-authored-by: Fantix King <[email protected]>
0 commit comments