summaryrefslogtreecommitdiff
path: root/pingd
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-06-06 10:18:23 +0000
committerPeter Palfrader <peter@palfrader.org>2003-06-06 10:18:23 +0000
commitdfff255d7c9a8c2290042db5b5b80afa72ecc3ec (patch)
tree551a2bb1c1dfc226a2bae5e1eabba755990cbc0b /pingd
parent2a9c5fec96aeb235b7fa848ecc36aee51932f756 (diff)
Exit immediatly after the current running task, even if we have a backlog
Diffstat (limited to 'pingd')
-rwxr-xr-xpingd8
1 files changed, 4 insertions, 4 deletions
diff --git a/pingd b/pingd
index ca4a608..6c6be18 100755
--- a/pingd
+++ b/pingd
@@ -3,7 +3,7 @@
$| = 1;
# (c) 2002, 2003 Peter Palfrader <peter@palfrader.org>
-# $Id: pingd,v 1.105 2003/06/06 10:15:02 weasel Exp $
+# $Id: pingd,v 1.106 2003/06/06 10:18:23 weasel Exp $
#
=pod
@@ -338,15 +338,15 @@ sub setSigHandlers() {
};
$SIG{'INT'} = sub {
Echolot::Log::info("Got SIGINT. scheduling exit.");
- Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, time() );
+ Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, 0 );
};
$SIG{'QUIT'} = sub {
Echolot::Log::info("Got SIGQUIT. scheduling exit.");
- Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, time() );
+ Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, 0) );
};
$SIG{'TERM'} = sub {
Echolot::Log::info("Got SIGTERM. scheduling exit.");
- Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, time() );
+ Echolot::Globals::get()->{'scheduler'}->schedule('exit', 0, 0) );
};
$SIG{'PIPE'} = sub {
Echolot::Log::error("Got SIGPIPE");