close all streams in child

This commit is contained in:
Saugat Pachhai (सौगात)
2023-03-17 14:43:44 +02:00
committed by Ruslan Kuprieiev
parent a2066d75f9
commit f02dd83e53
+1
View File
@@ -89,6 +89,7 @@ def _spawn_posix(cmd, env):
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
os.closerange(0, 3)
if platform.system() == "Darwin":
# workaround for MacOS bug