Documentation ¶
Overview ¶
Package pidfd provides access to Linux process file descriptors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
A File is a handle to a Linux pidfd. If the process referred to by the pidfd no longer exists, File's methods will return an *Error value which is compatible with errors.Is(err, os.ErrNotExist).
func Open ¶
Open opens a pidfd File referring to the process identified by pid. If the process does not exist, an *Error value is returned which is compatible with errors.Is(err, os.ErrNotExist).
func (*File) SendSignal ¶
SendSignal sends a signal the process referred to by File. Note that unix.Signal values also implement os.Signal.
Click to show internal directories.
Click to hide internal directories.