chiark / gitweb /
Prep v235: Apply upstream fixes (10/10) [src/update-utmp]
authorSven Eden <yamakuzure@gmx.net>
Mon, 14 Aug 2017 07:16:16 +0000 (09:16 +0200)
committerSven Eden <yamakuzure@gmx.net>
Mon, 14 Aug 2017 07:20:58 +0000 (09:20 +0200)
src/update-utmp/update-utmp.c

index 5e2d2c60e600df57e31917a317c361339933601a..ec5682e66f7249208d4cba8d0b4c19c21417b2ff 100644 (file)
@@ -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