# Re: sane-0.62 released

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

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Rogier Wolff: "Re: sane-0.62 released"
- Previous message: David Mosberger-Tang: "sane-0.62 released"
- In reply to: David Mosberger-Tang: "sane-0.62 released"
- Next in thread: David Mosberger-Tang: "Re: sane-0.62 released"
- Reply: David Mosberger-Tang: "Re: sane-0.62 released"

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

- Next message: Rogier Wolff: "Re: sane-0.62 released"
- Previous message: David Mosberger-Tang: "sane-0.62 released"
- In reply to: David Mosberger-Tang: "sane-0.62 released"
- Next in thread: David Mosberger-Tang: "Re: sane-0.62 released"
- Reply: David Mosberger-Tang: "Re: sane-0.62 released"