[sane-devel] Fwd: Closing file descriptors opened in sane_get_devices (was Re: [epson2] leaking file descriptors)
m. allan noah
kitno455 at gmail.com
Thu Aug 29 11:19:04 UTC 2013
On Thu, Aug 29, 2013 at 3:53 AM, Olaf Meeuwissen
<olaf.meeuwissen at avasys.jp> wrote:
> Olaf Meeuwissen writes:
> So my question really boils down to whether backends must/should close
> any file descriptors opened as a result of calling sane_get_devices().
> Thoughts, anyone?
My backends closes the device at the end of their attach routine, for
exactly this reason. I would say that backends must do this, but I
doubt that is written down anywhere for authors to read.
"The truth is an offense, but not a sin"
More information about the sane-devel