]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Allow graceful console shutdown
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Aug 2019 11:37:25 +0000 (13:37 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Aug 2019 06:57:03 +0000 (08:57 +0200)
commitc10f09786dca93d4861bfef7a54145f18f67fdaf
treefc20366f36a808b014190b29b29a308aa3cf5111
parent9935b435dfee4d130197ee62ae64880ccbcf1855
virsh: Allow graceful console shutdown

Currently, whenever there's a regular EOF on the console stream
or an error the virStreamAbort() is called regardless. While this
may not actually break anything, we should call virStreamFinish()
to let the daemon know we've successfully received all the data
and are shutting down the stream gracefully.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
tools/virsh-console.c