develooper Front page | perl.perl5.porters | Postings from May 2004

RE: [perl #24892] alarm not working with Windows XP (and win2000)

From:
Wu, Ann
Date:
May 4, 2004 14:20
Subject:
RE: [perl #24892] alarm not working with Windows XP (and win2000)
Message ID:
5CBD7C719C81F14CB15A9707F7B0B9B0AA0473@NAEX01.na.qualcomm.com
Thanks!!

-----Original Message-----
From: Guest via RT [mailto:perlbug-followup@perl.org] 
Sent: Tuesday, May 04, 2004 12:05 PM
To: Wu, Ann
Subject: [perl #24892] alarm not working with Windows XP (and win2000) 

I have found similiar behavior on Windows 2000 machine using <STDIN> as
the delay factor, Perl 5.8.4.

$SIG{ALRM} = sub { die "Alarm!\n" };

alarm 2;

my $ans = <STDIN>;
chomp($ans);

print "No alarm.\n";

This may help find the root cause of the problem, since it's a simpler
test case.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About