I'm not sure if this is what you have in mind:
sub kill_me{my $key = shift; die "\n\n\tKilled:$key\n\n";}
$SIG{INT} = \&kill_me;
This will kill the Perl process and (I think) any child processes.
-----Original Message-----
From: Khamneian, Mahtaj [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: Signal Handling
Has anyone been able to successfully implement CTRL-C signal handling in Perl DBI?
If so, I'd appreciate an example.
-------------------------------------
Mahtaj Khamneian
University of Missouri - ASP Phone : (573) 884-2281
1805 East Walnut Fax : (573) 884-3070
Columbia, MO 65201-6425 [EMAIL PROTECTED]
I wish I were able to create a program that could ping my mind.
I would then load it into the creation's/nature's server, for which
no root access is needed, and invoke it via cron at spontaneous
intervals.