We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb221c commit c833fcdCopy full SHA for c833fcd
sockets/unix_socket.go
@@ -79,7 +79,7 @@ func WithChmod(mask os.FileMode) SockOption {
79
80
// NewUnixSocketWithOpts creates a unix socket with the specified options
81
func NewUnixSocketWithOpts(path string, opts ...SockOption) (net.Listener, error) {
82
- if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
+ if err := syscall.Unlink(path); err != nil && !os.IsNotExist(err) {
83
return nil, err
84
}
85
mask := syscall.Umask(0777)
0 commit comments