update-utmp: wait slightly longer for the private bus socket being active
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Oct 2024 14:28:32 +0000 (23:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Oct 2024 23:43:21 +0000 (08:43 +0900)
commitf27ae592f70ea5f3f85a178dba3b94140cf808ee
tree15f2e50fe231ae226ba48cc05ee847e14e4c0159
parentb7f84f76fc903844393a0eee243add572092a791
update-utmp: wait slightly longer for the private bus socket being active

Before a339495b1d67f69f49ffffdd96002164a28f1c93, update-utmp typically
connects the public DBus socket when disconnected from the private DBus
socket, as dbus service should be active even during PID1 is being reexecuted.

However, after a339495b1d67f69f49ffffdd96002164a28f1c93, update-utmp
tries to connect only the private DBus socket, but reexecution of PID1
may be slow, hence all trials may fail when the reexecution is slow.

With this change, now it waits for 100ms to 2000ms, so in total it waits
about 37 seconds in average, previously about 4 seconds.
src/update-utmp/update-utmp.c