]> git.ipfire.org Git - thirdparty/hostap.git/commit
dbus: Terminate cleanly on messagebus shutdown
authorDaniel Gnoutcheff <daniel@gnoutcheff.name>
Thu, 16 May 2013 17:47:28 +0000 (20:47 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 16 May 2013 17:47:28 +0000 (20:47 +0300)
commitd7692b8d1c39db55055db39e4c56aa0426271c52
treed9766d750baa7f7e9b5a70ac303089e14bdeb20a
parente2396a684e96e7a3a0befd087c6ae7664cbff4ce
dbus: Terminate cleanly on messagebus shutdown

By default, dbus_connection_dispatch() will call _exit() if the bus
connection has been closed. This caused wpa_supplicant to terminate
without properly cleaning up after itself.

To ensure that we terminate cleanly when the messagebus terminates,
override the exit_on_disconnect behavior and install a filter to handle
libdbus's "Disconnected" signal.

[Bug 474]

Signed-hostap: Daniel Gnoutcheff <daniel@gnoutcheff.name>
wpa_supplicant/dbus/dbus_common.c