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

Reply via email to