Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Without success.#! /usr/bin/perl use Config; select STDOUT ; $| = 1 ; while ( true ) { print "." ; sleep 1 ; } sub catch_zap { die "Somebody sent me a SIG$signame"; } #$SIG{INT} = 'catch_zap'; # could fail in modules $SIG{INT} = \&catch_zap; # best strategy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No effect with SIG{INT}
by borisz (Canon) on Jan 16, 2006 at 10:24 UTC | |
|
Re: No effect with SIG{INT}
by Anonymous Monk on Jan 16, 2006 at 12:19 UTC | |
by borisz (Canon) on Jan 16, 2006 at 13:38 UTC | |
by ysth (Canon) on Jan 17, 2006 at 01:18 UTC |