Re: sane-0.62 released

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Sun, 27 Jul 1997 09:37:21 +0200 (MET DST)

David,

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