mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove useless os.Exit() after log.Fatalf
This commit is contained in:
parent
c2413889bb
commit
92384649cf
1 changed files with 0 additions and 4 deletions
|
@ -71,12 +71,10 @@ func main() {
|
|||
}
|
||||
if err := daemon(*pidfile, *flGraphPath, flHosts, *flAutoRestart, *flEnableCors, *flDns); err != nil {
|
||||
log.Fatal(err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
} else {
|
||||
if len(flHosts) > 1 {
|
||||
log.Fatal("Please specify only one -H")
|
||||
return
|
||||
}
|
||||
protoAddrParts := strings.SplitN(flHosts[0], "://", 2)
|
||||
if err := docker.ParseCommands(protoAddrParts[0], protoAddrParts[1], flag.Args()...); err != nil {
|
||||
|
@ -84,7 +82,6 @@ func main() {
|
|||
os.Exit(sterr.Status)
|
||||
}
|
||||
log.Fatal(err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +150,6 @@ func daemon(pidfile string, flGraphPath string, protoAddrs []string, autoRestart
|
|||
}
|
||||
} else {
|
||||
log.Fatal("Invalid protocol format.")
|
||||
os.Exit(-1)
|
||||
}
|
||||
go func() {
|
||||
chErrors <- docker.ListenAndServe(protoAddrParts[0], protoAddrParts[1], server, true)
|
||||
|
|
Loading…
Add table
Reference in a new issue