<br><div class="gmail_quote">On Tue, Jan 12, 2010 at 12:50 PM, Christopher Howard <span dir="ltr">&lt;<a href="mailto:choward@indicium.us">choward@indicium.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">Skylos wrote:<br>
&gt; On Mon, Jan 11, 2010 at 6:19 PM, Christopher Howard &lt;<a href="mailto:choward@indicium.us">choward@indicium.us</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:choward@indicium.us">choward@indicium.us</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     This sounds like exactly what I need, but it doesn&#39;t seem to be working.<br>
&gt;      It still freezes at the call to Does it make any difference that I am<br>
&gt;     not making a simple system call, but instead a call to a function in a<br>
&gt;     module?<br>
&gt;<br>
&gt;<br>
&gt; BlueComm.pm line 91 looks famliar.<br>
&gt;<br>
&gt;  91     eval<br>
&gt;  92     {<br>
&gt;  93       local $SIG{ALRM} = sub { die &quot;alarm\n&quot; };<br>
&gt;  94       alarm 1;<br>
&gt;  95       $nread = sysread $fh, $char, 1;<br>
&gt;  96       alarm 0;<br>
&gt;  97     };<br>
&gt;  98     $rbuff .= $char;<br>
&gt;  99   }<br>
&gt;<br>
&gt;<br>
&gt; Listen to Mr. DeRykus.  :)<br>
&gt;<br>
&gt; Skylos<br>
&gt;<br>
&gt;<br>
<br>
</div>I&#39;ve tried DeRykus&#39; suggestion and it didn&#39;t seem to have any effect.<br>
<br>
I&#39;m thinking, now that you pointed out this BlueComm.pm code, perhaps I<br>
can just modify this _do_cmd() function in BlueComm.pm to break after a<br>
certain number of tries.<font color="#888888"><br></font></blockquote><div> </div><div>I think its worth an experiment, but I&#39;m sure this loops this way for some kind of reason... like its using a non-blocking call for a blocking situation. <br>

<br>Skylos<br><br clear="all">&quot;If only I could get rid of hunger by rubbing my belly&quot; - Diogenes<br>
<br><br> </div></div><br>