[sane-devel] Using sanei_access: recommended or not?

Lauri Pirttiaho lauri.pirttiaho at luukku.com
Mon Jan 23 20:29:05 UTC 2006


Hello,

While writing the backend, I noticed so far only plustek
backend seems to employ sanei_access for locking the
device. Since in multi user systems it is possible
that accidentally someone else might try to access a
scanner in use, I think using the locking mechanism
provided by sanei_access would make sense.

I added locking to my cs3200f backend and got it working
quite easily and reliably (checked also automatic deletion
of locks for the killed processes). SANE_DEBUG_SANEI_ACCESS=255
was very helpful in figuring out the place of the lock file.

What are other's opinions about this? Should locking be
a recommended practice?

With best regards,
Lauri Pirttiaho
Oulu
Finland

...................................................................
Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku




More information about the sane-devel mailing list