Description of problem:
Hal hangs if service messagebus is not running before service
haldaemon is started.
Version-Release number of selected component (if applicable):
hal-0.2.97.cvs20040823-1
How reproducible:
Always
Steps to Reproduce:
1. /sbin/service messagebus stop
2. /sbin/service haldaemon restart (or start)
3. wait forever
Actual results:
Hangs
Expected results:
Should fail.
Additional info:
(dbus not running)
# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no
11:18:59.173 [E] hald_dbus.c:1922: dbus_bus_get(): Failed to connect
to socket /var/run/dbus/system_bus_socket: No such file or directory
I looked at it with strace -f and if run without --daemon=no hald
attempts to read something from a file descriptor but never returns.