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) }