hald-addon-acpi cannot survive acpid restart

Ryan Lortie desrt at desrt.ca
Mon Sep 12 03:16:09 PDT 2005


This is a patch to make it so that if acpid is restarted then the hald
acpi 'addon' will reconnect to it once it comes back rather then exiting
completely.

Basically, if a dropped connection was detected before, the addon would
exit().  Now I've added another while(1) around the body of the program
and changed some other things around very slightly.

In the event that acpid dies, we now wait 5 seconds and then attempt to
reconnect.

This patch has been in Ubuntu for the past few days and nobody is
screaming about it so I guess it probably works fairly OK.

Ubuntu bug is here -- http://bugzilla.ubuntu.com/show_bug.cgi?id=14852

The patch attached to the bug report is difference since I made it for
Breezy's HAL (which has sort of taken on a life of its own).  The patch
against CVS HEAD is attached to this email.

Cheers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acpid-restart.patch
Type: text/x-patch
Size: 5178 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050912/3c72ba8a/acpid-restart.bin


More information about the hal mailing list