Nicolas <nicolas.martin at freesurf.fr> wrote: > - under the root account: > # export SANE_DEBUG_PIXMA=10 > - restart the saned daemon (or through inetd, or xinetd)
Won't work if running through *inetd. If you can scan without issue running saned in debug mode, that indicates the pixma backend is doing something nasty, like writing to fd 0 (this seems to be a popular way of fscking with saned lately). Try strace()ing saned in debug mode, just in case. Look for write()s to fd 0, if that doesn't turn up anything, you'll have to dig deeper. I'm thinking of trapping writes to fd 0 inside saned and terminating with extreme prejudice if that happens. Seriously. File descriptors must be initialized to -1 in the code, not 0. Pay attention to your memset() and structures, please. Those issues aren't always easy to track down. JB. -- Julien BLACHE <http://www.jblache.org> <jb at jblache.org> GPG KeyID 0xF5D65169