Skip to content

Commit 334a5ce

Browse files
author
miktwon
committed
chmod for socket
1 parent d1209a0 commit 334a5ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dataListener.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ func (l *DataListener) initSocket() error {
5353
}
5454

5555
l.listener, err = net.Listen("unix", l.socketPath)
56+
if err != nil {
57+
return err
58+
}
5659

57-
return err
60+
return os.Chmod(l.socketPath, 0777)
5861
}
5962

6063
func (l *DataListener) acceptConnections() {

0 commit comments

Comments
 (0)