Skip to content

Commit

Permalink
Merge pull request #601 from caiyixiang/add-judgment
Browse files Browse the repository at this point in the history
add a judgment
  • Loading branch information
aledbf authored Apr 13, 2017
2 parents 03cae88 + 25a5b92 commit 86128f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/pkg/ingress/controller/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ func registerHandlers(enableProfiling bool, port int, ic *GenericController) {
})

mux.HandleFunc("/stop", func(w http.ResponseWriter, r *http.Request) {
syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
err := syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
if err != nil {
glog.Errorf("unexpected error: %v", err)
}
})

if enableProfiling {
Expand Down

0 comments on commit 86128f8

Please sign in to comment.