Skip to content

Commit 4bb778f

Browse files
committed
in popen_trufflecontext._launch use _multiprocessing._close instead of os.close
1 parent 41d7b79 commit 4bb778f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-python/3/multiprocessing/popen_truffleprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from . import util
88

99
# Begin Truffle change
10-
from _multiprocessing import _waittid, _terminate_spawned_thread, _spawn_context, _pipe, _write
10+
from _multiprocessing import _waittid, _terminate_spawned_thread, _spawn_context, _pipe, _write, _close
1111
# End Truffle change
1212

1313
__all__ = ['Popen']
@@ -128,7 +128,7 @@ def _launch(self, process_obj):
128128

129129
for fd in (child_r, child_w):
130130
if fd is not None:
131-
os.close(fd)
131+
_close(fd)
132132

133133
def close(self):
134134
if self.finalizer is not None:

0 commit comments

Comments
 (0)