This commit is contained in:
crusader 2017-10-27 11:26:15 +09:00
parent a4a116394d
commit 79d5056b0f

View File

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