onsearch
view release on metacpan or search on metacpan
lib/OnSearch/Utils.pm view on Meta::CPAN
} else {
$basename = $pathname;
}
return $basename
}
sub sigwrapper {
my ($signame, $sigsub, $wrapsub, @args) = @_;
my $oldsig = $SIG{$signame} if $SIG{$signame};
$SIG{$signame} = ($sigsub ? $sigsub : 'IGNORE');
&$wrapsub (@args);
$SIG{$signame} = $oldsig if $oldsig;
}
###
### TO DO - this so far is the most reliable way to index
### immediately. Try to clean up this implementation.
###
sub run_onindex {
my $txt = `/usr/local/etc/init.d/onindex index`;
OnSearch::WebLog::clf ('notice', "Onindex: $txt");
}
( run in 1.234 second using v1.01-cache-2.11-cpan-71847e10f99 )