summaryrefslogtreecommitdiff
path: root/pingd
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-01-14 06:27:41 +0000
committerPeter Palfrader <peter@palfrader.org>2003-01-14 06:27:41 +0000
commit7a3bf2431b20ce0bfa7ec1cbc782975e687ef4d7 (patch)
tree5643d0bea4d9146942050adc334eed35f98b0933 /pingd
parent1b5fed479a31e06829a714f7ac520b0f101642ff (diff)
Documenting new requirements
Reopen log on SIGHUP
Diffstat (limited to 'pingd')
-rwxr-xr-xpingd5
1 files changed, 3 insertions, 2 deletions
diff --git a/pingd b/pingd
index 433a2ed..361d889 100755
--- a/pingd
+++ b/pingd
@@ -3,7 +3,7 @@
$| = 1;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: pingd,v 1.87 2003/01/14 05:25:34 weasel Exp $
+# $Id: pingd,v 1.88 2003/01/14 06:27:41 weasel Exp $
#
=pod
@@ -310,6 +310,7 @@ sub setSigHandlers() {
open (STDOUT, ">>output") or die ("Cannot open 'output' as STDOUT\n");
open (STDERR, ">&STDOUT") or die ("Cannot dup STDOUT as STDERR\n");
};
+ Echolot::Log::reopen();
};
$SIG{'INT'} = sub {
Echolot::Log::info("Got SIGINT. scheduling exit");
@@ -485,7 +486,7 @@ sub daemon_run($) {
Echolot::Globals::get()->{'storage'}->finish();
unlink (Echolot::Config::get()->{'pidfile'}) or
- cluck ("Cannot unlink pidfile ".Echolot::Config::get()->{'pidfile'});
+ Echolot::Log::warn ("Cannot unlink pidfile ".Echolot::Config::get()->{'pidfile'}.".");
};
sub send_sig($) {