Documentation
¶
Overview ¶
Package ipc provides the local, same-user-only transport between stagent processes: Unix domain sockets on Linux/macOS and named pipes on Windows. Nothing here ever listens on TCP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInUse = errors.New("ipc: address already served by a live process")
ErrInUse is returned by Listen when another live process already serves the address (e.g. a second daemon racing the first).
Functions ¶
func Blocked ¶ added in v0.7.0
func Blocked(l *paths.Layout) *paths.OwnerError
Blocked reports the stagent location of l that another user owns, so that no daemon or kept shell can work: a directory in a shared temporary directory (paths.Layout.ForeignOwned), or the daemon's socket or named pipe. It returns nil when nothing is blocked. It creates nothing; the daemon address is probed with a Dial that is closed right away.
func Dial ¶
Dial connects to addr and makes sure the process serving it runs as us: a socket another user created first (e.g. in a shared /tmp/stagent-<uid> they made) is closed unused and reported as a *paths.OwnerError.
Types ¶
This section is empty.