ing
This commit is contained in:
parent
3c60fe4276
commit
6762d7f872
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user