From a8c18f9fd2c611096fd4e661e189f4c586b2692c Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 27 Oct 2020 17:16:20 +0330 Subject: [PATCH] Shell: Drop all the jobs after killing them in stop_all_jobs() --- Shell/Shell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 7294d65fa9..874d4e0a68 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -1585,6 +1585,8 @@ void Shell::stop_all_jobs() perror("killpg(KILL)"); } } + + jobs.clear(); } }