On 3/18/19 5:08 AM, Nikolay Shirokovskiy wrote:
We need to turn console into virObject object because stream/fd
callbacks
can be called from the event loop thread after freeing console
in main thread. It is convinient to turn into virLockableObject as
we have mutex in console object.
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy(a)virtuozzo.com>
---
tools/virsh-console.c | 74 ++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 55 insertions(+), 19 deletions(-)
Reviewed-by: Cole Robinson <crobinso(a)redhat.com>
- Cole