test stuff
This commit is contained in:
parent
c395f09556
commit
8959b13a0d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue