hmm. ok, I moved to flock() and now several processes have the same file
flock()#ed exclusively, i.e. that does not work either.

next fcntl()?

or are device files in any way special when it comes to flock(), fcntl() and
friend? I only want to make sure that only one process is talking to some
usb device at a time. and it would be nice if the kernel kept the log, so I
don't need to worry about cases like "what if the machines crashes / looses
power etc. and there is a stale lock file left".

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