Add some message logging

This commit is contained in:
Yang Tse 2006-11-20 10:35:25 +00:00
parent d8387b418d
commit 1e35d95df8
3 changed files with 64 additions and 35 deletions

View file

@ -114,7 +114,7 @@ do {
sub catch_zap {
my $signame = shift;
print STDERR "ftpserver.pl received SIG$signame, exiting\n";
ftpkillslaves();
ftpkillslave($ftpdnum, $ext, 1);
die "Somebody sent me a SIG$signame";
}
$SIG{INT} = \&catch_zap;