Re: [BUG] iolog terminate process sent to background
Daniele Palumbo <[email protected]> Wed, 22 Nov 2017 00:59:04 +0100
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
Il giorno 21 nov 2017, alle ore 18:34, Todd C. Miller <[email protected]> ha scritto: > 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 & Bug still exist in this case: daniele@build-jessie-amd64:~$ grep "^iperf" iperf-daemon.sh iperf3 -s </dev/null >/dev/null 2>&1 & daniele@build-jessie-amd64:~$ daniele@build-jessie-amd64:~$ ./replicator.sh env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, log_output, log_output, maxseq=150, iolog_mode=750, iolog_dir=/var/log/sudo-io/%{user}, !requiretty /usr/bin/iperf3 running KO test no sleep iperf3 KO iperf3: no process found running OK test sleeping 3s iperf3 KO iperf3: no process found daniele@build-jessie-amd64:~$ > or better yet: > > iperf3 -s -D Bug does not exist in this case: daniele@build-jessie-amd64:~$ grep "^iperf" iperf-daemon.sh iperf3 -s -D daniele@build-jessie-amd64:~$ daniele@build-jessie-amd64:~$ ./replicator.sh env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, log_output, log_output, maxseq=150, iolog_mode=750, iolog_dir=/var/log/sudo-io/%{user}, !requiretty /usr/bin/iperf3 running KO test no sleep 3624 iperf3 OK running OK test sleeping 3s 3633 iperf3 OK daniele@build-jessie-amd64:~$ Is this changing your analysis? Thanks, Daniele ____________________________________________________________ sudo-workers mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-workers
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQ2i6u6VhCxV1aSkPHxOPmZ9ILUVAUCWhS9yAAKCRDxOPmZ9ILU VGWdAJ9EeVY7pm7+Od4K81qY+FQWA6nTXgCfcMsIemPYxCOuN3c4Clq0ZNIAsRU= =yuXd -----END PGP SIGNATURE-----