oeqa/utils/qemurunner: use the right kill call so we don't send SIGTERM to bitbake...
authorStefan Stanacar <stefanx.stanacar@intel.com>
Tue, 11 Mar 2014 12:11:08 +0000 (14:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Mar 2014 15:11:40 +0000 (08:11 -0700)
commit25c19be0ed2edd9e1b57e4370c7b108b50cbbf39
tree40f6f270d5bf270ea85c9eaa54f52aff22e70c9f
parent2bb1af73742d1e7a4f424a85601cf4d3b7fa2e15
oeqa/utils/qemurunner: use the right kill call so we don't send SIGTERM to bitbake-worker

After recent bitbake-worker changes [1] this was killing the bitbake-worker,
which isn't what we want and kill(-pid) was the wrong call anyway.

runqemu.pid is the right PGID as the process was started with preexec_fn=setpgrp
(so no need to do os.getpgid(self.runqemu.pid))

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=15688798520896690561824b2fdc227c8a365c82

(From OE-Core rev: f4bf21b40ec6fa07c4a7bb450e3cfae12128dc2c)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py