]> git.proxmox.com Git - mirror_qemu.git/commit
monitor: Clean up fd sets on monitor disconnect
authorCorey Bryant <coreyb@linux.vnet.ibm.com>
Tue, 14 Aug 2012 20:43:48 +0000 (16:43 -0400)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2012 11:16:22 +0000 (13:16 +0200)
commitefb87c169740e618ec548c45c819a43e0ade2bab
tree4c3e144c1214ac7b3914075811e846d4374e144b
parentadb696f3d8535119fe0f5363de79a29e6bda83ed
monitor: Clean up fd sets on monitor disconnect

Fd sets are shared by all monitor connections.  Fd sets are considered
to be in use while at least one monitor is connected.  When the last
monitor disconnects, all fds that are members of an fd set with no
outstanding dup references are closed.  This prevents any fd leakage
associated with a client disconnect prior to using a passed fd.

Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
monitor.c