[patch] Add advisory locks to HAL devices
jesper at krogh.cc
Mon Sep 13 01:54:39 PDT 2004
I gmane.comp.freedesktop.hal, skrev Joe Shaw:
> This patch adds the infrastructure for the locks, but they're not yet
> used anywhere (like not polling a CD recorder while it's burning, for
> instance). It adds Lock and Unlock methods to libhal, which trigger
> certain properties being set in hald. hald indicates that it's locked
> with the "info.locked" property and sets "info.locked.dbus_service" to
> indicate who took the lock and "info.locked.reason" to a user-visible
> string as to why it is locked. hald tracks the lifecycle of the service
> in "info.locked.dbus_service" and releases the lock if it is deleted
> before it voluntarily unlocks the device.
Wouldn't it be nice to have the processid of the program that has
obtained the lock directly?
That would help hal or any other program to clean up if xmms crashed
with a lock on my soundcard.
(Just following HAL from the side-line)
./Jesper Krogh, jesper at krogh.cc
Jabber ID: jesper at jabbernet.dk
hal mailing list
hal at freedesktop.org
More information about the Hal