fix(process): retain provider output until streams close (#928)

This commit is contained in:
morluto
2026-10-07 18:39:10 +08:00
committed by GitHub
parent f826aa893f
commit b9292516f4
5 changed files with 149 additions and 6 deletions
+9
View File
@@ -0,0 +1,9 @@
import subprocess
import sys
sys.stderr.write("first")
sys.stderr.flush()
subprocess.Popen(
[sys.executable, "-c", "import sys, time; time.sleep(0.05); sys.stderr.write('last'); sys.stderr.flush()"],
stdout=subprocess.DEVNULL,
)