未验证 提交 f5c580a4 编写于 作者: M Ming Deng 提交者: GitHub

Merge pull request #3739 from nuczzz/develop

fix graceful bug: old process didn't exist when graceful restart
...@@ -46,7 +46,10 @@ func (srv *Server) Serve() (err error) { ...@@ -46,7 +46,10 @@ func (srv *Server) Serve() (err error) {
log.Println(syscall.Getpid(), srv.ln.Addr(), "Listener closed.") log.Println(syscall.Getpid(), srv.ln.Addr(), "Listener closed.")
// wait for Shutdown to return // wait for Shutdown to return
return <-srv.terminalChan if shutdownErr := <-srv.terminalChan; shutdownErr != nil {
return shutdownErr
}
return
} }
// ListenAndServe listens on the TCP network address srv.Addr and then calls Serve // ListenAndServe listens on the TCP network address srv.Addr and then calls Serve
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册