[sudo-workers] [BUG] iolog terminate process sent to background
Todd C. Miller
Todd.Miller at courtesan.com
Tue Nov 21 10:34:57 MST 2017
When I/O logging is enabled, if the process run by sudo exits, the
pseudo-tty will be closed. As a result of this, any process with
the tty open will receive SIGHUP.
In your example, when the iperf-daemon.sh scripts exits, iperf3
receives SIGHUP and exits. If you run iperf3 like this:
iperf3 -s </dev/null >/dev/null 2>&1 &
or better yet:
iperf3 -s -D
you will not have this problem.
- todd
More information about the sudo-workers
mailing list