RE: Having trouble porting an application to MS-Windows
- From: rvm@xxxxxxxxx (Bob McConnell)
- Date: Thu, 14 Jun 2007 11:41:55 -0400
In "perlport - Writing portable Perl" in the Alphabetic list of Perl
Functions:
alarm SECONDS
alarm
Not implemented. (Win32)
I couldn't find anything in the ActiveState release notes that
contradicted that.
Bob McConnell
-----Original Message-----.
From: Chas Owens [mailto:chas.owens@xxxxxxxxx]
Sent: Thursday, June 14, 2007 11:15 AM
To: Bob McConnell
Cc: beginners@xxxxxxxx
Subject: Re: Having trouble porting an application to MS-Windows
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: Chas Owens
- 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
- Having trouble porting an application to MS-Windows
- Prev by Date: Re: Iterate through a hashref using XML::Simple (real post)
- Next by Date: Re: Having trouble porting an application to MS-Windows
- 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
|