Destroy stdin if not destroyed

This commit is contained in:
Omar Brikaa 2022-05-02 19:23:15 +02:00
parent 61a833ca3c
commit 3b5d1713e1
1 changed files with 4 additions and 0 deletions

View File

@ -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();