From 6dc24dc1cf946c7edbc8a6844456b4a5e903c7a2 Mon Sep 17 00:00:00 2001 From: Alex Tool Date: Tue, 16 May 2023 21:16:35 +0300 Subject: [PATCH] Make sure that zombie processes are cleaned up --- service_unix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service_unix.go b/service_unix.go index 96582532..955c463b 100644 --- a/service_unix.go +++ b/service_unix.go @@ -69,6 +69,7 @@ func runWithOutput(command string, arguments ...string) (int, string, error) { func runCommand(command string, readStdout bool, arguments ...string) (int, string, error) { cmd := exec.Command(command, arguments...) + defer cmd.Wait() var output string var stdout io.ReadCloser