summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2011-09-25 18:08:07 +0200
committerTobi Oetiker <tobi@oetiker.ch>2011-09-25 18:08:07 +0200
commitb34700bd5c300dcf5326871c2b490b3ad8e267ee (patch)
tree91a78545ef6b8331a2fffd2f837a582f1e33797b
parent5d9cbae7cb53a12719f7bc649f7d3c11bbf7d412 (diff)
downloadsmokeping-b34700bd5c300dcf5326871c2b490b3ad8e267ee.tar.gz
smokeping-b34700bd5c300dcf5326871c2b490b3ad8e267ee.tar.xz
do not exit in zoom ajax mode
-rw-r--r--CHANGES2
-rw-r--r--lib/Smokeping.pm2
-rw-r--r--lib/Smokeping/Graphs.pm2
3 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index b088ba3..60ee8f4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
2011/09/25 -- released version 2.5.0
+* in zoom/ajax mode, do not exit ... fastcgis should not quit
+
* Switch from using SpeedyCGI to FastCGI.
* Added new OpenSSHJunOSPing probe to run ping from a juniper router via
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 293cdba..7e5bc2f 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1420,7 +1420,7 @@ sub get_detail ($$$$;$){
print "Content-Length: ".length($data)."\n\n";
print $data;
unlink "${imgbase}_${end}_${start}.png";
- exit;
+ return undef;
}
elsif ($mode eq 'n'){ # navigator mode
# $page .= qq|<div class="zoom" style="cursor: crosshair;">|;
diff --git a/lib/Smokeping/Graphs.pm b/lib/Smokeping/Graphs.pm
index 0791796..314fa54 100644
--- a/lib/Smokeping/Graphs.pm
+++ b/lib/Smokeping/Graphs.pm
@@ -281,7 +281,7 @@ sub get_multi_detail ($$$$;$){
print "Content-Length: ".length($data)."\n\n";
print $data;
unlink "${imgbase}_${end}_${start}.png";
- exit;
+ return undef;
}
elsif ($mode eq 'n'){ # navigator mode