Re: [sane-devel] scanimage hangs at shutdown (Preparing for a sane-backends release)

2015-08-17 Thread Rolf Bensch
It's not the described bug in libusb-compat. However, atexit() isn't working as desired in OpenSuse. scanimage closes the usb interface from atexit() *before* sane_cancel() is ready at the end of main(). Is this a problem of OpenSuse or should somebody rewrite the shutdown sequence of

Re: [sane-devel] scanimage hangs at shutdown (Preparing for a sane-backends release)

2015-08-17 Thread m. allan noah
Good point. Rolf- any chance you could insert a sleep at the end of main()? Also, does the backend in question use fork() on this distro? allan On Mon, Aug 17, 2015 at 8:30 PM, Olaf Meeuwissen olaf.meeuwis...@avasys.jp wrote: m. allan noah writes: I don't understand. Registered atexit

Re: [sane-devel] scanimage hangs at shutdown (Preparing for a sane-backends release)

2015-08-17 Thread Olaf Meeuwissen
m. allan noah writes: I don't understand. Registered atexit handlers should be called when main() returns, which is after sane_cancel. What version of libusb-compat is in use? Please remember that sane_cancel() only *initiates* cancellation. So cancellation may not have finished yet when

Re: [sane-devel] scanimage hangs at shutdown (Preparing for a sane-backends release)

2015-08-17 Thread m. allan noah
I don't understand. Registered atexit handlers should be called when main() returns, which is after sane_cancel. What version of libusb-compat is in use? allan On Mon, Aug 17, 2015 at 6:57 AM, Rolf Bensch r...@bensch-online.de wrote: It's not the described bug in libusb-compat. However,