Skip to content

Commit

Permalink
[core/process] Fix a bug that fd is not closed by {fd}>&-.
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Apr 22, 2020
1 parent 7f86a1a commit 4ed53e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,12 @@ def _PushCloseFd(self, loc):

elif loc.tag_() == redir_loc_e.Fd:
fd = cast(redir_loc__Fd, UP_loc).fd
self._PushSave(fd)

else:
raise AssertionError()

self._PushSave(fd)

return True

def _PushClose(self, fd):
Expand Down

0 comments on commit 4ed53e1

Please sign in to comment.