diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-25 18:08:07 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-25 18:08:07 +0200 |
commit | b34700bd5c300dcf5326871c2b490b3ad8e267ee (patch) | |
tree | 91a78545ef6b8331a2fffd2f837a582f1e33797b | |
parent | 5d9cbae7cb53a12719f7bc649f7d3c11bbf7d412 (diff) | |
download | smokeping-b34700bd5c300dcf5326871c2b490b3ad8e267ee.tar.gz smokeping-b34700bd5c300dcf5326871c2b490b3ad8e267ee.tar.xz |
do not exit in zoom ajax mode
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | lib/Smokeping.pm | 2 | ||||
-rw-r--r-- | lib/Smokeping/Graphs.pm | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -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 |