From 0d97daf3c746196ed8769007ad1a0b87052ddc5b Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Mon, 14 Aug 2017 09:16:16 +0200 Subject: [PATCH] Prep v235: Apply upstream fixes (10/10) [src/update-utmp] --- src/update-utmp/update-utmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index 5e2d2c60e..ec5682e66 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -280,7 +280,7 @@ void update_utmp(int argc, char* argv[], sd_bus *bus) { goto finish; } - log_debug("systemd-update-utmp running as pid "PID_FMT, getpid()); + log_debug("systemd-update-utmp running as pid "PID_FMT, getpid_cached()); if (streq(argv[1], "reboot")) r = on_reboot(&c); @@ -293,7 +293,7 @@ void update_utmp(int argc, char* argv[], sd_bus *bus) { r = -EINVAL; } - log_debug("systemd-update-utmp stopped as pid "PID_FMT, getpid()); + log_debug("systemd-update-utmp stopped as pid "PID_FMT, getpid_cached()); finish: #else -- 2.30.2