in reply to Re^3: Interrupt Handling - What am I doing wrong?
in thread Interrupt Handling - What am I doing wrong?

Oh.. I do get the message. Its just that it's not being displayed right away..as soon as I press Ctrl C. The message is suppressed till the thread completes the "join". As soon as it joins, the message is displayed. Somehow, the join is blocking - not sure why.

If I remove threads, and just use the normal expect.pm module..spawn a remote session ... do my work and press Ctrl C....the message appears immediately. What is it in the threads that is causing this behaviour?

  • Comment on Re^4: Interrupt Handling - What am I doing wrong?

Replies are listed 'Best First'.
Re^5: Interrupt Handling - What am I doing wrong?
by ikegami (Patriarch) on Apr 26, 2011 at 06:57 UTC
    Signals are only checked between Perl ops.