Re: Having trouble porting an application to MS-Windows
- From: chas.owens@xxxxxxxxx (Chas Owens)
- Date: Fri, 15 Jun 2007 10:55:24 -0400
On 6/15/07, Bob McConnell <rvm@xxxxxxxxx> wrote:
snip
eval {snip
local $SIG{ALRM} = sub { die "alarm\n" }; # NB:
\n required
alarm $timeout;
$nread = sysread PORT, $line, 1;
alarm 0;
};
This transmits the packet, but never comes out of the eval() if itsnip
doesn't receive a character. Is there anything obvious that I missed?
Hmm, that codes looks right. Do the two scripts I sent earlier work?
Even if this does work, can I set simultaneous alarms in multiple
threads?
Yes, I sent an example that worked for me with ActiveState's latest
version on WinXP.
.
- Follow-Ups:
- RE: Having trouble porting an application to MS-Windows
- From: Bob McConnell
- RE: Having trouble porting an application to MS-Windows
- References:
- Having trouble porting an application to MS-Windows
- From: Bob McConnell
- Re: Having trouble porting an application to MS-Windows
- From: Chas Owens
- RE: Having trouble porting an application to MS-Windows
- From: Bob McConnell
- Re: Having trouble porting an application to MS-Windows
- From: Chas Owens
- Re: Having trouble porting an application to MS-Windows
- From: Chas Owens
- RE: Having trouble porting an application to MS-Windows
- From: Bob McConnell
- Having trouble porting an application to MS-Windows
- Prev by Date: RE: Having trouble porting an application to MS-Windows
- Next by Date: Re: dynamic loading option?
- Previous by thread: RE: Having trouble porting an application to MS-Windows
- Next by thread: RE: Having trouble porting an application to MS-Windows
- Index(es):
Relevant Pages
|