mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Use svc_ident() for more cases
- Drop basename() of svc->cmd from remaining code - Replace uses of svc->cmd with svc_ident(svc) - Use svc_ident() as default log tag Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
467f1cca81
commit
fdbd25c1b5
4 files changed
+29
-26
No files matched your search
+2
-2
@@ -102,8 +102,8 @@ static void pidfile_update_conds(char *dir, char *name, uint32_t mask)
|
||||
service_forked(svc);
|
||||
|
||||
if (pid != svc->pid) {
|
||||
_d("Forking service %s changed PID from %d to %d",
|
||||
svc->cmd, svc->pid, pid);
|
||||
_d("Forking service %s (cmd %s) changed PID from %d to %d",
|
||||
svc_ident(svc, NULL, 0), svc->cmd, svc->pid, pid);
|
||||
svc->pid = pid;
|
||||
|
||||
/* Complement log in service.c for non-forking services */
|
||||
|
||||
Reference in new issue
Block a user