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