From 3b5d1713e1da6eb496b6318ce0473436f2991b3b Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Mon, 2 May 2022 19:23:15 +0200 Subject: [PATCH] Destroy stdin if not destroyed --- api/src/job.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/job.js b/api/src/job.js index 9b057e6..d690741 100644 --- a/api/src/job.js +++ b/api/src/job.js @@ -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();