sane-project-website/old-archive/2000-06/0224.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=&lt;200006300418.MAA19387@localhost.localdomain&gt;"><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>&gt; I avoid this by
</EM><BR>
<EM>&gt; a) adding a field &quot;u_int docancel : 1;&quot; to struct Handle.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; b) In process_request I add to SANE_NET_CANCEL &quot;handle[h].docancel = 1;&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; c) and at the and of do_scan where process_request is called I add
</EM><BR>
<EM>&gt; &quot;if (handle[h].docancel) break;&quot; and to the line
</EM><BR>
<EM>&gt; handle[h].scanning=0; I add &quot;handle[h].docancel=0;&quot;.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; d) in start_scan I add at the end to the line handle[h].scanning =
</EM><BR>
<EM>&gt; 1; the line &quot;handle[h].docancel=0;&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; e) again in process_request I add to SANE_NET_START after the line
</EM><BR>
<EM>&gt; handle[h].scanning=0 the line &quot;handle[h].docancel=0&quot;.
</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>
--
##&gt; Petter Reinholdtsen &lt;## | <A HREF="mailto:pere@td.org.uit.no?Subject=Re:%20bug%20in%20saned&In-Reply-To=&lt;200006300418.MAA19387@localhost.localdomain&gt;">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=&lt;200006300418.MAA19387@localhost.localdomain&gt;">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>