On 1/23/09, Andreas Jellinghaus <a...@dungeon.inka.de> wrote:
> Am Freitag 23 Januar 2009 16:15:39 schrieb Alon Bar-Lev:
>
> > >  Plus:
>  > >  - no udev event is generated when the device is removed
>  >
>  > There is, I sent you.
>  > Hal get this from somewhere...
>
>
> hal remembers, udev does not. thus udev only knows that some usb
>  device is gone, but does not remember e.g. vendor and product id
>  and cannot perform the right user. hal keeps more information in memory
>  as far as I know, so it it can do that.

All is needed is to be notified on removal.
The kernel tells you that if you have an opened handle.
And if there is a bug in kernel code when a device is gone (reported
by udev) you can repoll your handles and verify existence.
If I understand correctly, it was enough for pcscd.

Alon.
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to