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

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 $?.

Replies are listed 'Best First'.
Re^6: How to make `system` not ignore SIG INT in Perl?
by PerlOnTheWay (Monk) on Sep 13, 2011 at 06:05 UTC
    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.

        Is there a way to work around so that my provided script can terminate when pressing ^C?

        Or do something similar in another way?