]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: console: cleanup console on errors in main thread
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Mon, 18 Mar 2019 08:57:56 +0000 (11:57 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Thu, 4 Apr 2019 07:36:04 +0000 (10:36 +0300)
commitcbd9e3624d4cab44f7acac9c26224497d57d74f5
tree38be59c61ee38e0ce4948f0afd867cd79dd1147b
parent98361cc3b95041b4951ce1c4a5f3fe546f47a13f
tools: console: cleanup console on errors in main thread

We only check now for virObjectWait failures in virshRunConsole but
we'd better check and for other failures too. And we need to shutdown
console on error in the main thread.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
tools/virsh-console.c