]> code.ossystems Code Review - openembedded-core.git/commit
qemuimage-testlib: kill qemu process according to its pid, instead of process name
authorJiajun Xu <jiajun.xu@intel.com>
Wed, 1 Sep 2010 15:38:53 +0000 (23:38 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 2 Sep 2010 10:00:08 +0000 (11:00 +0100)
commit80993c4e1b9aa68651a026dd7416ba3d5e96c50c
tree13af9707a9ae68fcd358e2cf36ad7b9f2d985f65
parent4b611b66743a5ec220aef34d796af63029bb5fd9
qemuimage-testlib: kill qemu process according to its pid, instead of process name

poky-qemu-internal will set up a tap lockfile when creating tap device. The lockfile
will be released when a TERM signal is received. In previous code, function
Test_Kill_Qemu uses pkill to kill all process named "qemu". This may cause lockfile
release function not work in poky-qemu-internal. Then poky-qemu-internal will be
hang when user start QEMU the second time. To prevent the issue, the new function
Test_Kill_Qemu kills all child pid with a given parent process ID.

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
scripts/qemuimage-testlib