Re: [PATCH 0/3] virt-viewer: add SIGINT handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list





[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux