klenin / Spawner

Cross-platform sandbox runner
4 stars 8 forks source link

Supply fake stdin to a child process #92

Open klenin opened 7 years ago

klenin commented 7 years ago

Currently, if there is no redirect to stdin, child process receives closed handle.

While more efficient, this may cause confusing errors for unsuspecting participants who forgot to read data from a file. Optionally revert to traditional behaviour of supplying 'null' handle, reading of which will block and result in IL verdict.