From 8db69ce15e25601d0ac2ac98b1e45c0c01c11967 Mon Sep 17 00:00:00 2001 From: Lucas Abel <22837557+uael@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:23:05 +0100 Subject: [PATCH] fix(backend): fix zombies left by the bash executor (#4985) --- backend/windmill-worker/src/bash_executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/bash_executor.rs b/backend/windmill-worker/src/bash_executor.rs index b6279ccf97dfb..7b536afdae6eb 100644 --- a/backend/windmill-worker/src/bash_executor.rs +++ b/backend/windmill-worker/src/bash_executor.rs @@ -122,7 +122,7 @@ exit_status=$? # Clean up the named pipe and background processes rm -f bp - +pkill -P $$ || true # Exit with the captured status exit $exit_status