mirror of
https://github.com/moby/moby.git
synced 2025-11-18 09:41:11 +03:00
Extract daemon to its own package
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -133,7 +133,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C)
|
||||
}
|
||||
}()
|
||||
|
||||
if err := s.d.cmd.Process.Signal(os.Interrupt); err != nil {
|
||||
if err := s.d.Interrupt(); err != nil {
|
||||
c.Fatalf("Could not kill daemon: %v", err)
|
||||
}
|
||||
|
||||
@@ -166,12 +166,12 @@ func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
|
||||
}
|
||||
}()
|
||||
|
||||
if err := s.d.cmd.Process.Signal(os.Interrupt); err != nil {
|
||||
if err := s.d.Interrupt(); err != nil {
|
||||
c.Fatalf("Could not kill daemon: %v", err)
|
||||
}
|
||||
|
||||
for {
|
||||
if err := syscall.Kill(s.d.cmd.Process.Pid, 0); err == syscall.ESRCH {
|
||||
if err := syscall.Kill(s.d.Pid(), 0); err == syscall.ESRCH {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user