kopia lustrzana https://gitlab.com/sane-project/website
112 wiersze
4.2 KiB
HTML
112 wiersze
4.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: bug in saned</TITLE>
|
|
<META NAME="Author" CONTENT="Petter Reinholdtsen (pere@hungry.com)">
|
|
<META NAME="Subject" CONTENT="Re: bug in saned">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: bug in saned</H1>
|
|
<!-- received="Thu Jun 29 21:05:24 2000" -->
|
|
<!-- isoreceived="20000630040524" -->
|
|
<!-- sent="Fri, 30 Jun 2000 12:18:43 +0800" -->
|
|
<!-- isosent="20000630041843" -->
|
|
<!-- name="Petter Reinholdtsen" -->
|
|
<!-- email="pere@hungry.com" -->
|
|
<!-- subject="Re: bug in saned" -->
|
|
<!-- id="200006300418.MAA19387@localhost.localdomain" -->
|
|
<!-- inreplyto="bug in saned" -->
|
|
<STRONG>From:</STRONG> Petter Reinholdtsen (<A HREF="mailto:pere@hungry.com?Subject=Re:%20bug%20in%20saned&In-Reply-To=<200006300418.MAA19387@localhost.localdomain>"><EM>pere@hungry.com</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu Jun 29 2000 - 21:18:43 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0225.html">abel deuring: "Re: scsi command queuing"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0223.html">Petter Reinholdtsen: "Re: Test backends with 'scanimage -T'"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Jochen Eisinger: "Re: bug in saned"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0237.html">Jochen Eisinger: "Re: bug in saned"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#224">[ date ]</A>
|
|
<A HREF="index.html#224">[ thread ]</A>
|
|
<A HREF="subject.html#224">[ subject ]</A>
|
|
<A HREF="author.html#224">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
[Jochen Eisinger]
|
|
<BR>
|
|
<EM>> I avoid this by
|
|
</EM><BR>
|
|
<EM>> a) adding a field "u_int docancel : 1;" to struct Handle.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> b) In process_request I add to SANE_NET_CANCEL "handle[h].docancel = 1;"
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> c) and at the and of do_scan where process_request is called I add
|
|
</EM><BR>
|
|
<EM>> "if (handle[h].docancel) break;" and to the line
|
|
</EM><BR>
|
|
<EM>> handle[h].scanning=0; I add "handle[h].docancel=0;".
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> d) in start_scan I add at the end to the line handle[h].scanning =
|
|
</EM><BR>
|
|
<EM>> 1; the line "handle[h].docancel=0;"
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> e) again in process_request I add to SANE_NET_START after the line
|
|
</EM><BR>
|
|
<EM>> handle[h].scanning=0 the line "handle[h].docancel=0".
|
|
</EM><BR>
|
|
<P>Why where SIGPIPE not catched in the first place? Do you have a
|
|
<BR>
|
|
patch? Could this bug be related to the problem people reports when
|
|
<BR>
|
|
running a net scanner on localhost?
|
|
<BR>
|
|
<PRE>
|
|
--
|
|
##> Petter Reinholdtsen <## | <A HREF="mailto:pere@td.org.uit.no?Subject=Re:%20bug%20in%20saned&In-Reply-To=<200006300418.MAA19387@localhost.localdomain>">pere@td.org.uit.no</A>
|
|
<P>--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20bug%20in%20saned&In-Reply-To=<200006300418.MAA19387@localhost.localdomain>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0225.html">abel deuring: "Re: scsi command queuing"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0223.html">Petter Reinholdtsen: "Re: Test backends with 'scanimage -T'"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Jochen Eisinger: "Re: bug in saned"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0237.html">Jochen Eisinger: "Re: bug in saned"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#224">[ date ]</A>
|
|
<A HREF="index.html#224">[ thread ]</A>
|
|
<A HREF="subject.html#224">[ subject ]</A>
|
|
<A HREF="author.html#224">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Thu Jun 29 2000 - 21:07:59 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|