sane-project-website/old-archive/2001-06/0085.html

139 wiersze
6.1 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: xsane requests username and password after sane</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@rauch-domain.de)">
<META NAME="Subject" CONTENT="Re: xsane requests username and password after saned has exited">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: xsane requests username and password after saned has exited</H1>
<!-- received="Tue Jun 5 11:13:12 2001" -->
<!-- isoreceived="20010605181312" -->
<!-- sent="Tue, 05 Jun 2001 17:54:44 +0200" -->
<!-- isosent="20010605155444" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@rauch-domain.de" -->
<!-- subject="Re: xsane requests username and password after saned has exited" -->
<!-- id="3B1D00C4.B8DBC479@rauch-domain.de" -->
<!-- inreplyto="20010604185632.A14406@vortex.swb.de" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@rauch-domain.de?Subject=Re:%20xsane%20requests%20username%20and%20password%20after%20saned%20has%20exited&In-Reply-To=&lt;3B1D00C4.B8DBC479@rauch-domain.de&gt;"><EM>oliver.rauch@rauch-domain.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Jun 05 2001 - 08:54:44 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0086.html">Oliver Rauch: "Re: umax 2200 hi res scan"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0084.html">Oliver Rauch: "Re: UMAX Vistascan S12"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0065.html">Henning Meier-Geinitz: "Re: xsane requests username and password after saned has exited"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0089.html">Nick Lamb: "Re: xsane requests username and password after saned has exited"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0068.html">Nick Lamb: "Re: xsane requests username and password after saned has exited"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0089.html">Nick Lamb: "Re: xsane requests username and password after saned has exited"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#85">[ date ]</A>
<A HREF="index.html#85">[ thread ]</A>
<A HREF="subject.html#85">[ subject ]</A>
<A HREF="author.html#85">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Henning Meier-Geinitz wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; At least on Linux, saned will exit even if you kill -9 xsane. I don't
</EM><BR>
<EM>&gt; understand all details but maybe that's because of signal (SIGPIPE, quit)
</EM><BR>
<EM>&gt; in saned.c. So maybe this is for other platforms?
</EM><BR>
<P>Not only for other platforms.
<BR>
<P>1) When xsane crashes saned does not exit
<BR>
2) When the system crashes on which xsane does run saned will not exit.
<BR>
3) When the network connection is interrupted saned does not exit.
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt; I haven't looked into details but don't we need some sort of locking for
</EM><BR>
<EM>&gt; this? What happens, if some data is transmitted through the net and in
</EM><BR>
<EM>&gt; this moment the forked process starts its sane_get_option_descriptor (handle, 0)
</EM><BR>
<EM>&gt; function?
</EM><BR>
<P>Yes, we have to care about such things. So may be it could be easier
<BR>
to force that GUI frontends have to call a sane_control_option()
<BR>
e.g. every 60 seconds... but this also is not nice.
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt; &gt; May be we could define a well_known_option &quot;create_keepalives&quot; that can be
</EM><BR>
<EM>&gt; &gt; set by GUI-frontends, so for command-line-frontends the fork() is not called.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I'm not sure if this is necessary as the keep-alive shouldn't harm
</EM><BR>
<EM>&gt; command-line frontends (it's just not necessary).
</EM><BR>
Yes, but forking means at least a lot of unnecessary memory usage.
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt; I will change the alarm to 3600 seconds for now.
</EM><BR>
Fine.
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><PRE>
--
Homepage: <A HREF="http://www.rauch-domain.de">http://www.rauch-domain.de</A>
sane-umax: <A HREF="http://www.rauch-domain.de/sane-umax">http://www.rauch-domain.de/sane-umax</A>
xsane: <A HREF="http://www.xsane.org">http://www.xsane.org</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@rauch-domain.de?Subject=Re:%20xsane%20requests%20username%20and%20password%20after%20saned%20has%20exited&In-Reply-To=&lt;3B1D00C4.B8DBC479@rauch-domain.de&gt;">Oliver.Rauch@rauch-domain.de</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:%20xsane%20requests%20username%20and%20password%20after%20saned%20has%20exited&In-Reply-To=&lt;3B1D00C4.B8DBC479@rauch-domain.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0086.html">Oliver Rauch: "Re: umax 2200 hi res scan"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0084.html">Oliver Rauch: "Re: UMAX Vistascan S12"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0065.html">Henning Meier-Geinitz: "Re: xsane requests username and password after saned has exited"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0089.html">Nick Lamb: "Re: xsane requests username and password after saned has exited"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0068.html">Nick Lamb: "Re: xsane requests username and password after saned has exited"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0089.html">Nick Lamb: "Re: xsane requests username and password after saned has exited"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#85">[ date ]</A>
<A HREF="index.html#85">[ thread ]</A>
<A HREF="subject.html#85">[ subject ]</A>
<A HREF="author.html#85">[ 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>Tue Jun 05 2001 - 11:17:13 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>