ing
This commit is contained in:
parent
6762d7f872
commit
1a1a4b7ff9
|
@ -2,13 +2,17 @@ package ipc
|
|||
|
||||
import (
|
||||
"net"
|
||||
"os"
|
||||
)
|
||||
|
||||
func (sh *ServerHandlers) Listen() (net.Listener, error) {
|
||||
func (sh *ServerHandlers) Listen() (l net.Listener, err error) {
|
||||
//sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
||||
// os.Remove(sh.path)
|
||||
l, err = net.ListenUnix("unix", &net.UnixAddr{Name: sh.Addr, Net: "unix"})
|
||||
|
||||
return net.ListenUnix("unix", &net.UnixAddr{Name: sh.Addr, Net: "unix"})
|
||||
os.Chmod(sh.Addr, 0700)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (sh *ServerHandlers) Stopped() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user