Skip to content

Commit 4ed53e1

Browse files
committed
[core/process] Fix a bug that fd is not closed by {fd}>&-.
1 parent 7f86a1a commit 4ed53e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/process.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,12 @@ def _PushCloseFd(self, loc):
302302

303303
elif loc.tag_() == redir_loc_e.Fd:
304304
fd = cast(redir_loc__Fd, UP_loc).fd
305-
self._PushSave(fd)
306305

307306
else:
308307
raise AssertionError()
309308

309+
self._PushSave(fd)
310+
310311
return True
311312

312313
def _PushClose(self, fd):

0 commit comments

Comments
 (0)