chiark / gitweb /
Fix accidental dbus closing in update_utmp() (#50)
authorSven Eden <yamakuzure@gmx.net>
Tue, 19 Jun 2018 21:32:59 +0000 (23:32 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 29 Jun 2018 05:12:51 +0000 (07:12 +0200)
commit4f703de664738f58bc92834f2cd75234254eb07f
treeb24763391a964c0827ccf79f09b3727a82a43c7d
parentf126109b3cdd134469fb1d976e81f943c90a8d4f
Fix accidental dbus closing in update_utmp() (#50)

When updating utmp on reboot and poweroff, the managers dbus
connection was copied and then closed and invalidated.

As the utmp update in elogind does not need a dbus connection at all,
the copying and the closing was removed.

This fixes elogind to become unresponsive when calling for poweroff,
halt or reboot.

Closes: #50
src/update-utmp/update-utmp.c
src/update-utmp/update-utmp.h