Andreas Jellinghaus wrote:
> openct uses
>         open(device, O_EXCL | O_RDWR);
> 
> so, I would assume that only one process can open a device
> like this. unfortunatly this is not true: I have two processes
> that have the same device opened this way.
> 
> note: I used /dev/bus/usb/*/* files, not the old usbfs.

found it. for some reason I had one process on /dev/bus/usb/*/*
and one on /proc/bus/usb/*/*. Since that is inside the kernel the
same resource, wouldn't honoring O_EXCL be good? or is it tradition
that only the filename is important, not what is behind it?

Thanks, Andreas



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to