From d50a4d7ddc35c160d7559df562328da46372e877 Mon Sep 17 00:00:00 2001 From: Deli Zhang Date: Fri, 8 Mar 2019 14:19:12 +0800 Subject: [PATCH] CA-312462: Avoid using iperf daemon mode Signed-off-by: Deli Zhang --- plugins/autocertkit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/autocertkit b/plugins/autocertkit index 9ce58860..8a6f8aa8 100755 --- a/plugins/autocertkit +++ b/plugins/autocertkit @@ -2092,9 +2092,9 @@ def start_iperf_server(session, args): call = ['service', 'iptables', 'stop'] make_local_call(call) - # Start iperf daemon - need to ensure we don't block - call = [IPERF, '-s', '-D', '-B', dev.ip] - log.debug("About to start iperf server daemon (%s)" % call) + # Start iperf - need to ensure we don't block + call = ['nohup', IPERF, '-s', '-B', dev.ip, '>/dev/null', '&'] + log.debug("About to start iperf server (%s)" % call) subprocess.Popen(call, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True, bufsize=4096)