mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Destroy stdin if not destroyed
This commit is contained in:
parent
61a833ca3c
commit
3b5d1713e1
1 changed files with 4 additions and 0 deletions
|
@ -195,6 +195,10 @@ class Job {
|
|||
clear_timeout(kill_timeout);
|
||||
|
||||
proc.stderr.destroy();
|
||||
if (!proc.stdin.destroyed) {
|
||||
proc.stdin.end();
|
||||
proc.stdin.destroy();
|
||||
}
|
||||
proc.stdout.destroy();
|
||||
|
||||
this.cleanup_processes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue