syzkaller/pkg/osutil
Dmitry Vyukov bdb7b93f25 pkg/osutil: kill subprocesses more reliably
In some cases we start scp, which starts ssh,
then kill scp but the ssh subprocess is not killed.
As the result cmd.Wait hangs waiting for EOF on the stdout/stderr,
which are still kept alive by ssh subprocess. But ssh just hangs forever.

Create a process group for each command and kill whole process group.
Hopefully this will help.
2019-03-18 10:52:18 +01:00
..
fileutil_test.go all: fix gometalinter warnings 2018-03-08 18:48:26 +01:00
fileutil.go pkg/osutil: always remove old file in Rename 2018-12-20 13:22:46 +01:00
osutil_akaros.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_appengine.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_bsd.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_darwin.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_fuchsia.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_linux.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_test.go pkg/osutil: add IsExist helper function 2017-06-17 12:11:24 +02:00
osutil_unix.go Add mandatory OpenBSD bits (#689) 2018-08-28 10:07:26 -07:00
osutil_windows.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00