in reply to Re^3: Perl Alarm Not Working
in thread Perl Alarm Not Working
C:\test>start /b perl -MIO::Socket -E"$s=IO::Socket::INET->new(Listen=>1,LocalPort=>12345);$c=$s->accept; +sleep 30" C:\test>perl -MIO::Socket -E"$s=IO::Socket::INET->new('localhost:12345');eval{alarm 10;<$s>};pri +nt'here'" here
Windows has no signals. Not even SIGALRM. Perl emulates them, and the emulation is far from perfection. (It's actually pretty good, given that ugly Windows API.)
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl Alarm Not Working
by BrowserUk (Patriarch) on Dec 19, 2010 at 22:36 UTC | |
by ikegami (Patriarch) on Dec 19, 2010 at 23:25 UTC | |
by BrowserUk (Patriarch) on Dec 19, 2010 at 23:43 UTC | |
by ikegami (Patriarch) on Dec 20, 2010 at 00:28 UTC | |
by BrowserUk (Patriarch) on Dec 20, 2010 at 02:01 UTC | |
|