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 {
|
if len(cmd.handlers) != 0 {
|
||||||
cmd.wg.Add(2)
|
cmd.wg.Add(2)
|
||||||
|
|
||||||
|
@ -158,6 +156,8 @@ func (cmd *LinuxCommand) Run() error {
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd.wg.Add(1)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer cmd.wg.Done()
|
defer cmd.wg.Done()
|
||||||
|
|
||||||
|
@ -227,8 +227,8 @@ func (cmd *LinuxCommand) Run() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//close(signalChannel)
|
|
||||||
signal.Stop(signalChannel)
|
signal.Stop(signalChannel)
|
||||||
|
close(signalChannel)
|
||||||
cmd.wg.Wait()
|
cmd.wg.Wait()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue