2024-02-08 09:29:13 -05:00
|
|
|
//go:build !darwin && !openbsd
|
2024-01-12 13:34:15 -05:00
|
|
|
|
|
|
|
package socket
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
|
|
|
func listen(socketname string) (*net.UnixListener, error) {
|
|
|
|
return net.ListenUnix("unix", &net.UnixAddr{
|
|
|
|
Name: "@" + socketname,
|
|
|
|
Net: "unix",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func onAccept(conn *net.UnixConn, listener *net.UnixListener) {
|
|
|
|
// do nothing
|
2024-02-08 09:29:13 -05:00
|
|
|
// while on darwin and OpenBSD we would unlink here;
|
|
|
|
// on non-darwin the socket is abstract and not present on the filesystem
|
2024-01-12 13:34:15 -05:00
|
|
|
}
|