Extract body of child process to a method
Reduce effective scope of pipe variables
Promote log stream to a local
Log directly to the log file in non-verbose mode
Don't pass the read end of the pipe to exec_cmd
Skip allocating a pipe entirely in non-verbose mode
Reduce branches and effective scope of some variables
Cache result of ARGV.verbose? on the stack
Flush log stream before exec
Ensure log file is closed
Remove debugging code :shame:
Less code in begin block
Remove unnecessary closed? guard

The debugger can't jump back to this point, so we don't have to worry
about this code executing twice.
juju 1.20.7

Closes #32122.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
juju: update 1.20.7 bottle.
tcpreplay 4.0.5

Closes #32118.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
tcpreplay: add 4.0.5 bottle.