klenin / Spawner

Cross-platform sandbox runner
4 stars 8 forks source link

Multiple output redirection to the same file #18

Closed rotanov closed 7 years ago

rotanov commented 9 years ago

Consider the following sp.exe --separator=// --// --out=output.txt 1.exe --// --out=output.txt 2.exe

Now only 1.exe will gain write access to the output.txt. Setting share mode to FILE_SHARE_READ | FILE_SHARE_WRITE doesn't solve the problem.

Consider open file handle, write, close file handle for each write.

klenin commented 7 years ago

Fixed in the last rewrite.