hashicorp / hashicorp/go-plugin
plugins left unix socket files after crash
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 511
- Avg merge
- 22h 47m
- Merged PRs (30d)
- 4
Description
OS: linux
The plugins is abnormally closed, such as SIGKILL, the unix socket file will be left behind, and causing a leak in some case.
why not plugin support "Abstract sockets" to resolve this case.
http://man7.org/linux/man-pages/man7/unix.7.html
> Abstract sockets
Socket permissions have no meaning for abstract sockets: the process
umask(2) has no effect when binding an abstract socket, and changing
the ownership and permissions of the object (via fchown(2) and
fchmod(2)) has no effect on the accessibility of the socket.
Abstract sockets automatically disappear when all open references to
the socket are closed.
The abstract socket namespace is a nonportable Linux extension.
Contributor guide
Assessment
This issue has not been assessed yet.