]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tool: Exit init only when /bin/sh itself stops
authorSasha Levin <levinsasha928@gmail.com>
Mon, 26 Dec 2011 10:18:23 +0000 (12:18 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 3 Jan 2012 07:19:48 +0000 (09:19 +0200)
commit2a3e890d39933f089eb12d10490fad7941db4d7a
treece6d091861e0da4b584e1aba28dd3b1fe7efd702
parent6119b86dc490c2eeda516fc5cba710ad6561abcd
kvm tool: Exit init only when /bin/sh itself stops

Right now we wait for any of the children to stop, which means we might
exit before /bin/sh stopped.

Instead, wait only for the /bin/sh (or the sandboxed) process.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/guest/init_stage2.c