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

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.

Replies are listed 'Best First'.
Re^8: How to make `system` not ignore SIG INT in Perl?
by PerlOnTheWay (Monk) on Sep 13, 2011 at 06:19 UTC

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

    Or do something similar in another way?

      There are many tool to launch processes. IPC::Open3 should do it.
      open(local *CHILD_STDIN, '<', '/dev/null') or die $!; my $pid = open3( '<CHILD_STDIN', # Closed by open3 '>STDOUT', '>STDERR', ... ); waitpid($pid, 0);