[patch] Add advisory locks to HAL devices

Jesper Krogh jesper at krogh.cc
Mon Sep 13 12:14:36 PDT 2004


I gmane.comp.freedesktop.hal, skrev Robert Love:
>  The processes lifecycle may be shorter than the lifecycle of the lock,
>  e.g. mount.
> 
> > That would help hal or any other program to clean up if xmms crashed
> > with a lock on my soundcard. 
> 
>  Maybe we can tie the lock to a resource owned by the process and notice
>  when the process dies and release the lock?
> 
>  This would have to be an alternative use case, though, because of again
>  mount etc.

Perhaps the lock should have an optional "pid" entry, that if set
denotes the process that had been granted the lock. 

Jesper

-- 
./Jesper Krogh, jesper at krogh.cc
Jabber ID: jesper at jabbernet.dk


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



More information about the Hal mailing list