From 2b011ea8c39596fc4f85271f160cdf73f4616db8 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 14 Dec 2017 17:49:55 +0900 Subject: [PATCH] ing --- server/server_handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server_handlers.go b/server/server_handlers.go index e834657..1299ab8 100644 --- a/server/server_handlers.go +++ b/server/server_handlers.go @@ -52,6 +52,7 @@ func (sh *ServerHandlers) Listen(serverCTX server.ServerContext) (net.Listener, func (sh *ServerHandlers) OnStart(serverCTX server.ServerContext) { sh.ServerHandlers.OnStart(serverCTX) + os.Remove(sh.pidPath) s := strconv.FormatInt(int64(sh.port), 10) ioutil.WriteFile(sh.pidPath, []byte(s), os.ModePerm) }