test stuff

This commit is contained in:
Shane C 2024-07-11 17:13:58 -04:00
parent c395f09556
commit 8959b13a0d
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -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