mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() If the daemon was stopped successfully in one of the retry-loops, the function would return early; ```go for { select { case err := <-d.Wait: ---> the function returns here, both on "success" and on "fail" return err case <-time.After(20 * time.Second): ... ``` In that case, the pidfile would not be cleaned up. This patch changes the function to clean-up the pidfile in a defer, so that it will always be removed after succesfully stopping the daemon. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
config.go | ||
container.go | ||
daemon.go | ||
daemon_unix.go | ||
daemon_windows.go | ||
doc.go | ||
node.go | ||
ops.go | ||
plugin.go | ||
secret.go | ||
service.go | ||
swarm.go |