From: Sven Eden Date: Mon, 14 Aug 2017 07:16:16 +0000 (+0200) Subject: Prep v235: Apply upstream fixes (10/10) [src/update-utmp] X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0d97daf3c746196ed8769007ad1a0b87052ddc5b;p=elogind.git Prep v235: Apply upstream fixes (10/10) [src/update-utmp] --- 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