Documentation
¶
Overview ¶
Package busproxy holds the connection code shared by the host-side proxies that serve names on the container's session bus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNotRunning ¶
CheckNotRunning returns an error when pidPath names a live process whose command line contains subcommand. A stale file, or one whose PID was reused by another program, does not count.
func Dial ¶
Dial connects to the bus socket at socketPath and returns the connection together with the PID of the process that listens on the socket. The kernel reports that PID in the caller's PID namespace, so for the container's session bus it is a host PID of a process inside the container.
func RemoveOwnPID ¶
func RemoveOwnPID(pidPath string)
RemoveOwnPID removes pidPath only when it holds the current process's PID, so an exiting second instance does not remove the file of a running one.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package busproxytest runs private dbus-daemons for proxy tests.
|
Package busproxytest runs private dbus-daemons for proxy tests. |