Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle re-used pids in pidfile_is_running
Since pids can be re-used, it is necessary to check that the process that is running with a pid matches the one that we expect. This adds the ability to optionally pass a 'binary' argument to pidfile_is_running, and if it is passed to match the binary against /proc/$pid/exe. Signed-off-by: Terry Wilson <twilson@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com> Acked-by: Ihar Hrachyshka <ihrachys@redhat.com> Acked-by: Mark Michelson <mmichels@redhat.com>
- Loading branch information