]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
torture: Kill qemu, not parent process
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 28 Mar 2016 21:44:42 +0000 (14:44 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:39:53 +0000 (13:39 -0700)
commitfb2c66af10f92bc83659c4d8a32e02287f0e5dda
tree2243adf34ac6948db82f587bd6320713a6ae6461
parent9eb5188a0704bd21eb7e4aef83b904fad43d3ec8
torture: Kill qemu, not parent process

The current hang-check machinery in the rcutorture scripts uses "$!" of
a parenthesized bash statement to capture the pid.  Unfortunately, this
captures not qemu's pid, but rather that of its parent that implements
the parenthesized statement.  This commit therefore adjusts things so as
to capture qemu's actual pid, which then allows the script to actually
kill qemu in event of a kernel hang.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh