Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use /proc opportunistically only if it exists
This improves accuracy for systems with /proc and doesn't affect other systems. This leaves in place a race condition if many watchdog processes are started in very short succession, since the pidfile is not atomically checked and updated. For purposes of the watchdog this is probably good enough. (See https://stackoverflow.com/a/688365/5419599 for more on this.)
- Loading branch information