in reply to Re: win32, ctrl-c, sleep, and signals
in thread win32, ctrl-c, sleep, and signals

I've tried it on w2k and I get the same issue. If I control C before the first print it exits without the die message.
Weird.
  • Comment on Re^2: win32, ctrl-c, sleep, and signals

Replies are listed 'Best First'.
Re^3: win32, ctrl-c, sleep, and signals
by jesuashok (Curate) on May 30, 2006 at 15:42 UTC
    Hi

    The reason could be die raises a signal. so Inside a signal handler, If a signal getting raised it will lead to misleading result. that is what happened in your code.

    Remove the die and use exit there. I have updated my node accordingly. use the same code and try in your important.

    That will work.

    "Keep pouring your ideas"
      That will work.

      Afraid not. :-) Still doesn't work for me. Peculiar.

      Thanks for trying it.

      Ken

      "This bounty hunter is my kind of scum: Fearless and inventive." --J.T. Hutt