New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alarm not working with Windows XP #7035
Comments
From awu@qualcomm.comHi, I have a perl script for Windows XP using alarm, but the alarm doesn't ==== cut sample code ===== $SIG{ALRM} = sub { close SOCK; print "timeout\n"; die; }; .... Setup socket ... (this part work) alarm 10; # alarm wait for 10 seconds. .... Write to the socket & wait for reply from the socket, but the ==== end sample code ==== |
From guest@guest.guest.xxxxxxxxI have found similiar behavior on Windows 2000 machine using <STDIN> as $SIG{ALRM} = sub { die "Alarm!\n" }; alarm 2; my $ans = <STDIN>; print "No alarm.\n"; This may help find the root cause of the problem, since it's a simpler |
The RT System itself - Status changed from 'new' to 'open' |
From awu@qualcomm.comThanks!! -----Original Message----- I have found similiar behavior on Windows 2000 machine using <STDIN> as $SIG{ALRM} = sub { die "Alarm!\n" }; alarm 2; my $ans = <STDIN>; print "No alarm.\n"; This may help find the root cause of the problem, since it's a simpler |
From @HugmeirOn Tue May 04 12:05:11 2004, guest wrote:
I just built Perl on WinXP, and while this is still present, perlport's |
From @bulk88On Sun Apr 29 18:20:57 2012, Hugmeir wrote:
ntdll.dll!_KiFastSystemCallRet@0()
The console is synchronous IO. OS calls can not be interrupted. There is |
From @ikegamiOn Mon, Apr 30, 2012 at 11:56 AM, bulk 88 via RT
But why isn't the "signal" raised after readline returns? |
From @bulk88On Mon Apr 30 11:03:52 2012, ikegami@adaelis.com wrote:
I modded the script to, alarm 2; my $ans = <STDIN>; print "No alarm.\n"; perl512.dll!win32_message_window_proc(void * hwnd=0x00120ad0, unsigned
I'm predicting right now the bug is that there is no way to tell perl to #define WIN32_POLL_INTERVAL 32768 I think this might be related to having to do 32K Perl OPs before a |
From @bulk88Yep, I was right. This script does the alarm handler after pressing enter. alarm 2; my $ans = <STDIN>; while($i < 4000000000) { Alarm! C:\Documents and Settings\Owner\Desktop> |
Migrated from rt.perl.org#24892 (status was 'open')
Searchable as RT24892$
The text was updated successfully, but these errors were encountered: