summaryrefslogtreecommitdiff
path: root/atarist/test/sig
blob: ac1b2b2feec7fe6be63ab3688d3ae643ebd89bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
sub handler {
    local($sig) = @_;
    print "Caught SIG$sig\n";
    exit(0);
}

$SIG{'INT'} = 'handler';

print "Hit CRTL-C to see if it is trapped\n";
while($_ = <ARGV>) {
    print $_;
}