From d0322e72068aa27232581b7e38e351515b511f9a Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 23 Jan 2011 01:37:00 -0500 Subject: somewhat fix iperf server. Previously it would just launch it and hang php forever until you manually killed iperf. Now it launches the server in the background, but it's going to stay running forever. Probably ideally need a Start/Stop button for the server but this at least keeps it from killing the web interface --- config/iperf.xml | 2 +- config/iperfserver.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/iperf.xml b/config/iperf.xml index 7e748f08..3de57441 100644 --- a/config/iperf.xml +++ b/config/iperf.xml @@ -7,7 +7,7 @@ /* $Id$ */ /* ========================================================================== */ /* - authng.xml + iperf.xml part of pfSense (http://www.pfSense.com) Copyright (C) 2007 to whom it may belong All rights reserved. diff --git a/config/iperfserver.xml b/config/iperfserver.xml index b133514d..99d8ba34 100644 --- a/config/iperfserver.xml +++ b/config/iperfserver.xml @@ -7,7 +7,7 @@ /* $Id$ */ /* ========================================================================== */ /* - authng.xml + iperfserver.xml part of pfSense (http://www.pfSense.com) Copyright (C) 2007 to whom it may belong All rights reserved. @@ -135,7 +135,7 @@ if($_POST['window'] != "") $iperf_options .= " -w {$_POST['window']}"; if($_POST['port'] != "") $iperf_options .= " -p {$_POST['port']}"; $iperf_options .= " -s"; - system("/usr/local/bin/iperf" . $iperf_options); + mwexec_bg("/usr/local/bin/iperf" . $iperf_options); -- cgit v1.2.3