Destroy stdin if not destroyed
This commit is contained in:
parent
61a833ca3c
commit
3b5d1713e1
|
@ -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…
Reference in New Issue