in reply to How to make `system` not ignore SIG INT in Perl?
while(1) { system("echo 111"); exit if ($? & 127) == 2; # SIGINT == 2 on my system }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to make `system` not ignore SIG INT in Perl?
by PerlOnTheWay (Monk) on Sep 13, 2011 at 07:03 UTC | |
by Corion (Patriarch) on Sep 13, 2011 at 07:08 UTC | |
by salva (Canon) on Sep 13, 2011 at 07:50 UTC |