summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-08-14 09:16:16 +0200
committerSven Eden <yamakuzure@gmx.net>2017-08-14 09:20:58 +0200
commit0d97daf3c746196ed8769007ad1a0b87052ddc5b (patch)
treecf4c508d94cdff8881cb9abdea9b64e3cf617f8b
parent7dee75c3e92339d219732cf4908e40380c31c0bf (diff)
Prep v235: Apply upstream fixes (10/10) [src/update-utmp]
-rw-r--r--src/update-utmp/update-utmp.c4
1 files 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