1
0
mirror of https://github.com/moby/moby.git synced 2025-12-24 13:21:20 +03:00

Remove unnecessary job "initserverpidfile"

That job was a hacky solution to a real race condition. This removes the
hack without re-introducing the race.

Signed-off-by: Solomon Hykes <solomon@docker.com>
This commit is contained in:
Solomon Hykes
2014-08-05 07:21:05 +00:00
parent c9f3fd3fc7
commit b4efcd53e0
3 changed files with 0 additions and 25 deletions

View File

@@ -46,14 +46,6 @@ func mainDaemon() {
log.Fatal(err)
}
// handle the pidfile early. https://github.com/docker/docker/issues/6973
if len(*pidfile) > 0 {
job := eng.Job("initserverpidfile", *pidfile)
if err := job.Run(); err != nil {
log.Fatal(err)
}
}
// load the daemon in the background so we can immediately start
// the http api so that connections don't fail while the daemon
// is booting