[Jochen Eisinger]
> I avoid this by
> a) adding a field "u_int docancel : 1;" to struct Handle.
>
> b) In process_request I add to SANE_NET_CANCEL "handle[h].docancel = 1;"
>
> c) and at the and of do_scan where process_request is called I add
> "if (handle[h].docancel) break;" and to the line
> handle[h].scanning=0; I add "handle[h].docancel=0;".
>
>
> d) in start_scan I add at the end to the line handle[h].scanning =
> 1; the line "handle[h].docancel=0;"
>
> e) again in process_request I add to SANE_NET_START after the line
> handle[h].scanning=0 the line "handle[h].docancel=0".
Why where SIGPIPE not catched in the first place? Do you have a
patch? Could this bug be related to the problem people reports when
running a net scanner on localhost?
-- ##> Petter Reinholdtsen <## | pere@td.org.uit.no-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Thu Jun 29 2000 - 21:07:59 PDT