mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
errcheck: libcontainer/configs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -387,7 +387,7 @@ func (c Command) Run(s *specs.State) error {
|
||||
case err := <-errC:
|
||||
return err
|
||||
case <-timerCh:
|
||||
cmd.Process.Kill()
|
||||
_ = cmd.Process.Kill()
|
||||
<-errC
|
||||
return fmt.Errorf("hook ran past specified timeout of %.1fs", c.Timeout.Seconds())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user