1
0
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:
Vincent Demeester
2016-12-09 10:17:53 +01:00
parent 0a072e93df
commit 48de91a33f
39 changed files with 980 additions and 737 deletions

View File

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