Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process.kill to check for process is more portable.
On OpenBSD, you can only use getpgid(pid) if the calling process belongs to the same session as the the process with the PID `pid'. Otherwise getpgid() returns EPERM. Using kill(0, pid) is a more portable way to check whether a process exists.
- Loading branch information