mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
plugins: pidfile: reduce log noise
With the new practise of keeping record of process pid files, we no longer need to log/update when reading back the same PID we already have on file. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+5
-3
@@ -91,9 +91,11 @@ static void pidfile_update_conds(char *dir, char *name, uint32_t mask)
|
||||
pid_t pid;
|
||||
|
||||
pid = pid_file_read(pid_file(svc));
|
||||
_d("Forking service %s changed PID from %d to %d",
|
||||
svc->cmd, svc->pid, pid);
|
||||
svc->pid = pid;
|
||||
if (pid != svc->pid) {
|
||||
_d("Forking service %s changed PID from %d to %d",
|
||||
svc->cmd, svc->pid, pid);
|
||||
svc->pid = pid;
|
||||
}
|
||||
}
|
||||
|
||||
cond_set(cond);
|
||||
|
||||
Reference in New Issue
Block a user