summaryrefslogtreecommitdiffstats
diff options
context:
space:
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