Skip to content

Commit

Permalink
Merge pull request #174 from DeliZhangX/private/deliz/CA-312462
Browse files Browse the repository at this point in the history
CA-312462: Avoid using iperf daemon mode
  • Loading branch information
DeliZhangX authored Mar 8, 2019
2 parents cdd57b8 + d50a4d7 commit 82602c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/autocertkit
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82602c5

Please sign in to comment.