[libvirt] PATCH: Fix thread safety with HAL driver restart

Daniel Veillard veillard at redhat.com
Fri May 29 13:48:48 UTC 2009

On Fri, May 29, 2009 at 02:36:40PM +0100, Daniel P. Berrange wrote:
> The restart method of the HAL implementation of node device is not 
> currently threadsafe, because it destroys and creates the entire
> driver, including its mutexes. This patch changes it to simply throw
> away all existing devices, and re-load them from dbus.

  Hum, there is a awful lot more initializations in
halDeviceMonitorStartup than in the replacement routine,
but they all seems to be about initializing HAL library itself.



Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

More information about the libvir-list mailing list