klenin / Spawner

Cross-platform sandbox runner
4 stars 8 forks source link

Spawner shuts down before draining application pipe #21

Open rotanov opened 9 years ago

rotanov commented 9 years ago

Consider sp.exe -hr=1 --out=std "C:\Program Files (x86)\Git\bin\ls.exe" -la executed in a directory with a couple of files\folders (10-20 in my case). The thing is ls.exe (or any other program) sends data through stdout and shuts down. Spawner is not waiting for ls.exe's stdout pipe being consumed fully and shuts down shortly after. So it's a matter of luck how much of ls output we will see.