Documentation
¶
Overview ¶
Package procevent waits for process exit and directory changes through OS notifications. There is no polling and no deadline: a wait ends when a notification arrives. darwin uses kqueue, and linux uses pidfd and inotify.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alive ¶
Alive reports whether the process with pid exists. A process of another user (EPERM) also counts as existing.
func WatchDir ¶
WatchDir registers changes of the directory (an entry is created, removed, or moved) with inotify, and returns a function that waits for the next change and a function that closes the watch and returns the error of closing it. Registration happens before the state is read, so no change between them is missed.
Types ¶
This section is empty.