Can you explain this to me:
nread = read (s->pipe, buf, max_len);
DBG(3, "read %ld bytes\n", (long) nread);
if (!s->scanning)
return do_stop (s);
Why do you first try to read data from the pipe, and only then
do the check for s->scanning? When would s->scanning get changed?
If s->scanning is false, why would you still need to "do_stop"?
Roger.
-- Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/ To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com