Bummer. It appears to be a portability issue here (as far as I can tell). I'm using examples straight out of the Cookbook and they don't work. I even tried setting $SIG{INT} = 'IGNORE';, but to no avail.

However, I searched the perlbug database and couldn't find a problem like this. In fact, I verifed that others are successfully using %SIG, so I assume that I must be misunderstand something. So let me see if I understand this. The following should generate an infinite loop which should do nothing but fill the screen with numbers and cannot be broken out of with CTRL-C:

#!/usr/bin/perl -w use strict; $SIG{INT} = 'IGNORE'; my $count=0; while (){ print $count++; }
Unfortunately, when I hit CTRL-C, the program stops on a dime.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just go the the link and check out our stats.


In reply to (Ovid) Re: Win32 Interrupts by Ovid
in thread Win32 Interrupts by Adam

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.