in reply to Re^3: How to make `system` not ignore SIG INT in Perl?
in thread How to make `system` not ignore SIG INT in Perl?

When you press ^C, if it terminates, it works;otherwise it doesn't work.

It doesn't terminates for me.

  • Comment on Re^4: How to make `system` not ignore SIG INT in Perl?

Replies are listed 'Best First'.
Re^5: How to make `system` not ignore SIG INT in Perl?
by ikegami (Patriarch) on Sep 13, 2011 at 06:04 UTC
    Each terminates in a split second whether you press Ctrl-C or not. I can't tell if Ctrl-C sis killing it or not without inspecting $?.
      I want it to terminate the Perl program whenever I press ^C ...

        Then you'll need to send a signal to the Perl program.

        ...ok, so Ctrl-C does send to both the child and parent, and the parent (Perl) does ignore it. Sorry.

        Back to the question, no, system's behaviour simply is not configurable.