[PATCH] HAL 0.4 - don't add a device if we already have it

David Zeuthen david at fubar.dk
Mon Mar 14 22:05:39 PST 2005


On Mon, 2005-03-14 at 19:05 +0100, Kay Sievers wrote:
> While playing around with hotplug event replay from initramfs, it happens,
> that events are generated for devices HAL already knows from its coldplug
> run. This leads to a lot of funny double entries in the device store. :)
> 
> We should prevent the device addition by hotplug events if we already
> have one with the same sysfs-devpath.

Looks good to commit - my hal-0.4 box is at work so if you can commit
the patch it would be great. Btw, I fixed a very grave memory leak on
HEAD, see here

 http://cvs.freedesktop.org/hal/hal/hald/device_info.c?rev=1.26&view=log

you might want to check if the fix apples to hal-0_4-stable-branch (I've
been meaning to do it...)

Cheers,
David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list