summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-04-29 20:34:40 +0000
committerPeter Palfrader <peter@palfrader.org>2003-04-29 20:34:40 +0000
commit4dba92d97804dce8ccd1a844973b3fbc9cbe3f0d (patch)
treed30e0cae7f334f2d3a9c8bb83b6910d0b8ca48fb
parent5eae261e7247260f816137451e27886c76288112 (diff)
Catch SIGPIPE
-rw-r--r--NEWS1
-rwxr-xr-xpingd9
2 files changed, 7 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 1e82219..3c9cfd2 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ Changes in
* Fix 0/false in Fetch/Ping/Show in summary report.
* fork() for calling mixmaster, so we can exec() it
rather can using open("| ...") which ivokes a shell.
+ * Catch SIGPIPE
Changes in version
* Minor documentation fixes suggested by Ryan Lackey.
diff --git a/pingd b/pingd
index c2c981c..4f64bd3 100755
--- a/pingd
+++ b/pingd
@@ -3,7 +3,7 @@
$| = 1;
# (c) 2002, 2003 Peter Palfrader <peter@palfrader.org>
-# $Id: pingd,v 1.102 2003/02/21 13:28:39 weasel Exp $
+# $Id: pingd,v 1.103 2003/04/29 20:34:40 weasel Exp $
#
=pod
@@ -341,13 +341,16 @@ sub setSigHandlers() {
Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, time() );
};
$SIG{'QUIT'} = sub {
- Echolot::Log::info("Got SIGINT. scheduling exit.");
+ Echolot::Log::info("Got SIGQUIT. scheduling exit.");
Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, time() );
};
$SIG{'TERM'} = sub {
- Echolot::Log::info("Got SIGINT. scheduling exit.");
+ Echolot::Log::info("Got SIGTERM. scheduling exit.");
Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, time() );
};
+ $SIG{'PIPE'} = sub {
+ Echolot::Log::error("Got SIGPIPE");
+ };
};