[sane-devel] xsane-win32 error handling
Thu, 30 May 2002 14:49:59 +0200
On Wed, May 29, 2002 at 11:51:40PM -0700, Andrei B. wrote:
> - after digging a little more, I found in the logs that tcpd reported
> "file /usr/sbin/saned not found".
> (my inetd.conf line contained /usr/sbin/tcpd saned)
> I changed it so it contained the full path name to saned, and it
> I'd suggest to add some more error handling to the network
> communication layer in xsane, so that connection loss, inability to
> find a valid saned at the other end does not crash xsane
I can only comment on net.c, the client side of the SANE networking
code. net.c detects such failures (at least on Linux):
[net] connect_dev: argument marshalling error (Connection reset by peer)
and shouldn't break anything.
> Also, I'd suggest to the maintainer of saned.man the following:
> I used the example shown for inetd.conf using tcpd directly, but it did
> not work because tcpd expected to find saned in /usr/sbin, while it was
> installed in /usr/local/sbin.
> I'd suggest to change the example for this case to reflect this by
> using the full pathname for saned.
Ok, I have changed this in CVS.
Thanks for all your comments!