Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mxqd: Verify names of reaper processes no restart
When the daemon restarts, it has to figure out which of the jobs, the database shows as running on the sever, are in fact still running and which are gone. Currently we only check, whether the process with the pid from the database still exists. However, this can give wrong results if the pid of a job is reused after a system reboot or after a pid wrap. mxqd might regard an unrelated process as one of its jobs and nanny and kill it. Update code to only regard a proces as a running mxqd job if its "comm"-value (/proc/PID/comm) is "mxqd reaper".
- Loading branch information