mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06: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);
|
clear_timeout(kill_timeout);
|
||||||
|
|
||||||
proc.stderr.destroy();
|
proc.stderr.destroy();
|
||||||
|
if (!proc.stdin.destroyed) {
|
||||||
|
proc.stdin.end();
|
||||||
|
proc.stdin.destroy();
|
||||||
|
}
|
||||||
proc.stdout.destroy();
|
proc.stdout.destroy();
|
||||||
|
|
||||||
this.cleanup_processes();
|
this.cleanup_processes();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue