fix deadlock when dbus-daemon could not start up
authorChristian Ehrlicher <Ch.Ehrlicher@gmx.de>
Mon, 27 Apr 2009 11:41:48 +0000 (13:41 +0200)
committerunknown <Administrator@.(none)>
Mon, 30 Nov 2009 09:32:04 +0000 (10:32 +0100)
commita83b7cb80c375c1aaeaa8b4d8114037069e2736c
tree63abd07424b02562c25a493f9c8506f8f2aefe78
parent722a90c9cbc7368ffde9ad768ef4f2e45c3a620d
fix deadlock when dbus-daemon could not start up

windbus:r811: apply patch by Thorvald Natvig to fix endless loop when _dbus_get_autolaunch_shm got called and the dbus-daemon failed to start up.
* if launching for some reason fails, set an error message
* _dbus_get_autolaunch_shm will abort getting the shared memory after 20 attempts (2 seconds)
* _dbus_get_autolaunch_address checks if the return state of WaitForInputIdle before calling _dbus_get_autolaunch_shm.

windbus:r812: remove WaitForInputIdle as it doesn't work in non-console mode
(cherry picked from commit 363fd736556219bad77c4b217e051b7983dc34e9)
dbus/dbus-sysdeps-win.c