<br><div class="gmail_quote">On Tue, Jan 12, 2010 at 12:50 PM, Christopher Howard <span dir="ltr"><<a href="mailto:choward@indicium.us">choward@indicium.us</a>></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>
> On Mon, Jan 11, 2010 at 6:19 PM, Christopher Howard <<a href="mailto:choward@indicium.us">choward@indicium.us</a><br>
</div><div class="im">> <mailto:<a href="mailto:choward@indicium.us">choward@indicium.us</a>>> wrote:<br>
><br>
><br>
><br>
> This sounds like exactly what I need, but it doesn't seem to be working.<br>
> It still freezes at the call to Does it make any difference that I am<br>
> not making a simple system call, but instead a call to a function in a<br>
> module?<br>
><br>
><br>
> BlueComm.pm line 91 looks famliar.<br>
><br>
> 91 eval<br>
> 92 {<br>
> 93 local $SIG{ALRM} = sub { die "alarm\n" };<br>
> 94 alarm 1;<br>
> 95 $nread = sysread $fh, $char, 1;<br>
> 96 alarm 0;<br>
> 97 };<br>
> 98 $rbuff .= $char;<br>
> 99 }<br>
><br>
><br>
> Listen to Mr. DeRykus. :)<br>
><br>
> Skylos<br>
><br>
><br>
<br>
</div>I've tried DeRykus' suggestion and it didn't seem to have any effect.<br>
<br>
I'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'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">"If only I could get rid of hunger by rubbing my belly" - Diogenes<br>
<br><br> </div></div><br>