From 6762d7f872ec515567be2d90afc4297deec4a12d Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 27 Oct 2017 11:01:53 +0900 Subject: [PATCH] ing --- ipc/ipc_unix.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ipc/ipc_unix.go b/ipc/ipc_unix.go index 38ee6e6..3e479fe 100644 --- a/ipc/ipc_unix.go +++ b/ipc/ipc_unix.go @@ -2,17 +2,15 @@ package ipc import ( "net" - "os" - "path/filepath" ) func (sh *ServerHandlers) Listen() (net.Listener, error) { - sh.path = filepath.Join(os.TempDir(), sh.Addr) - os.Remove(sh.path) + //sh.path = filepath.Join(os.TempDir(), sh.Addr) + // os.Remove(sh.path) - return net.ListenUnix("unix", &net.UnixAddr{Name: sh.path, Net: "unix"}) + return net.ListenUnix("unix", &net.UnixAddr{Name: sh.Addr, Net: "unix"}) } func (sh *ServerHandlers) Stopped() { - os.Remove(sh.path) + // os.Remove(sh.path) }