Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 Index ¶ func Wait(pid int) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Wait ¶ func Wait(pid int) error Wait blocks until the process with the given PID exits. Polls with syscall.Kill(pid, 0) every 500ms. Signal 0 doesn't send a signal — it just checks whether the process exists. Returns an error immediately if the process doesn't exist at the start. Types ¶ This section is empty. Source Files ¶ View all Source files wait_unix.go Click to show internal directories. Click to hide internal directories.