ing
This commit is contained in:
parent
3c60fe4276
commit
6762d7f872
|
@ -2,17 +2,15 @@ package ipc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
"os"
|
|
||||||
"path/filepath"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (sh *ServerHandlers) Listen() (net.Listener, error) {
|
func (sh *ServerHandlers) Listen() (net.Listener, error) {
|
||||||
sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
//sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
||||||
os.Remove(sh.path)
|
// 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() {
|
func (sh *ServerHandlers) Stopped() {
|
||||||
os.Remove(sh.path)
|
// os.Remove(sh.path)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user