Re: Having trouble porting an application to MS-Windows
- From: chas.owens@xxxxxxxxx (Chas Owens)
- Date: Thu, 14 Jun 2007 11:15:25 -0400
On 6/14/07, Bob McConnell <rvm@xxxxxxxxx> wrote
snip
On the Win32 platform, this form of select is only implemented forsnip
sockets, and alarm() is not implemented at all.
What makes you think the alarm function is not implemented? Running
the following code with the latest version of ActiveState Perl on
Windows XP works.
#!/usr/bin/perl
use strict;
use warnings;
print localtime() . "\n";
eval {
local $SIG{ALRM} = sub { die "timeout\n" };
alarm 3;
while (1) {}
};
print $@ if $@;
print localtime() . "\n";
.
- Follow-Ups:
- Re: Having trouble porting an application to MS-Windows
- From: Purl Gurl
- 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
- Having trouble porting an application to MS-Windows
- Prev by Date: RE: Hash Key is a Null Value
- Next by Date: Re: Iterate through a hashref using XML::Simple (real post)
- Previous by thread: Having trouble porting an application to MS-Windows
- Next by thread: RE: Having trouble porting an application to MS-Windows
- Index(es):
Relevant Pages
|