ing
This commit is contained in:
parent
a4a116394d
commit
79d5056b0f
|
@ -7,7 +7,7 @@ import (
|
||||||
|
|
||||||
func (sh *ServerHandlers) Listen() (l net.Listener, err error) {
|
func (sh *ServerHandlers) Listen() (l net.Listener, err error) {
|
||||||
//sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
//sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
||||||
// os.Remove(sh.path)
|
os.Remove(sh.Addr)
|
||||||
l, err = net.ListenUnix("unix", &net.UnixAddr{Name: sh.Addr, Net: "unix"})
|
l, err = net.ListenUnix("unix", &net.UnixAddr{Name: sh.Addr, Net: "unix"})
|
||||||
|
|
||||||
os.Chmod(sh.Addr, 0777)
|
os.Chmod(sh.Addr, 0777)
|
||||||
|
@ -16,5 +16,5 @@ func (sh *ServerHandlers) Listen() (l net.Listener, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sh *ServerHandlers) Stopped() {
|
func (sh *ServerHandlers) Stopped() {
|
||||||
// os.Remove(sh.path)
|
os.Remove(sh.Addr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user