diff --git a/core/pkg/ingress/controller/launch.go b/core/pkg/ingress/controller/launch.go index f76366b83..6c5f0776d 100644 --- a/core/pkg/ingress/controller/launch.go +++ b/core/pkg/ingress/controller/launch.go @@ -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 {