On 12/11/19 15:40, Daniel P. Berrangé wrote:
On Tue, Nov 12, 2019 at 12:29:09PM +0100, Francesco Giudici wrote:
When remote-viewer or virt-viewer are terminated by a signal, they quit
without explicitly releasing resources. A bug[1] has been filed against
virt-viewer for not releasing redirected usb devices when it's terminated
by CTRL-C. Clearly this could be solved by adding a signal handler doing
proper shutdown of the application.
All resources used by a process are automatically released by the
kernel when the process exits.
IOW, doing a "graceful exit" to manually release USB devices should
not be required, not least because we want everything to behave
well even in the face of an abnormal application crash where we have
no way to manually releasing devices.
Can you explain what is preventing the USN device release from the
kernel POV ?
Honestly, no... not yet. I'll investigate it.
Thank you for the quick feedback!
Francesco
Regards,
Daniel
_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list