mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c56bfdf10a
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> |
||
---|---|---|
.. | ||
daemon | ||
environment | ||
fakecontext | ||
fakegit | ||
fakestorage | ||
fixtures | ||
registry | ||
request | ||
doc.go | ||
helper.go | ||
helpers.go | ||
stringutils.go | ||
stringutils_test.go |