]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Set active console before running /bin/sh
authorSasha Levin <levinsasha928@gmail.com>
Tue, 27 Sep 2011 13:03:47 +0000 (16:03 +0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 27 Sep 2011 14:12:47 +0000 (17:12 +0300)
commit802d8270abc048c48b01b730d9c12e79cd63f24c
tree9b87e7ef1cf81b262d1a0b701cb82e64c0eee8c1
parent2f68a89e6175ab0f466d107b52a8a1adccfdf662
kvm tools: Set active console before running /bin/sh

This patch sets active console to the serial console before running the
shell. Doing so fixes two issues:

* Fix job control.

* Set all env vars.

The user visible issues are less warnings (no more of this:
  sh: cannot set terminal process group (-1): Inappropriate ioctl for device
  sh: no job control in this shell)

A working 'top', and a working ctrl-c.

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