[sane-devel] sane-gphoto2 problems with CanonPowerShote A10 and net.conf

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 17 Jan 2002 18:43:33 +0100


Hi,

On Thu, Jan 17, 2002 at 03:12:21PM +0000, jim.george@blueyonder.co.uk wrote:
> Finally, and worst of all, if I attempt to access my scanner remotely
> gphoto2 reports the Bad Parameters error and then saned exits

saned shouldn't exit. The gphoto2 backend should just return from the sane API
call. It probably doesn't, because it uses "exit(1)".

E.g. if I don't provide a "camera" option in gphoto2.conf and start xsane it
just exits without giving me a chance to select any other scanner that is
available.

Please don't use exit or any other function that ends a program in a
backend. This will stop the frontend immediately, no chance to look for other
backends or close them. Always use "return" with an appropriate status code.

Bye,
   Henning