From 8959b13a0df411ebc844033350eee3b02933f5a3 Mon Sep 17 00:00:00 2001 From: Shane C Date: Thu, 11 Jul 2024 17:13:58 -0400 Subject: [PATCH] test stuff --- linux/run.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/run.go b/linux/run.go index 572b426..cf31040 100644 --- a/linux/run.go +++ b/linux/run.go @@ -119,8 +119,6 @@ func (cmd *LinuxCommand) Run() error { } } - cmd.wg.Add(1) - if len(cmd.handlers) != 0 { cmd.wg.Add(2) @@ -158,6 +156,8 @@ func (cmd *LinuxCommand) Run() error { }() } + cmd.wg.Add(1) + go func() { defer cmd.wg.Done() @@ -227,8 +227,8 @@ func (cmd *LinuxCommand) Run() error { } } - //close(signalChannel) signal.Stop(signalChannel) + close(signalChannel) cmd.wg.Wait() return nil