mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-07 12:17:18 +00:00
Ensure stream is aborted when exiting console
After running 'virsh console' in interactive mode, there was a missing call to virStreamAbort, which meant the server kept the stream resources open * tools/console.c: Abort stream when exiting
This commit is contained in:
parent
57c7b40b76
commit
3cf37700cd
@ -90,9 +90,11 @@ static void
|
||||
virConsoleShutdown(virConsolePtr con)
|
||||
{
|
||||
con->quit = true;
|
||||
virStreamEventRemoveCallback(con->st);
|
||||
if (con->st)
|
||||
if (con->st) {
|
||||
virStreamEventRemoveCallback(con->st);
|
||||
virStreamAbort(con->st);
|
||||
virStreamFree(con->st);
|
||||
}
|
||||
if (con->stdinWatch != -1)
|
||||
virEventRemoveHandle(con->stdinWatch);
|
||||
if (con->stdoutWatch != -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user