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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user