]> git.proxmox.com Git - qemu.git/commit - qemu-char.c
stash away SCM_RIGHTS fd until a getfd command arrives
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Apr 2010 15:25:23 +0000 (17:25 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 26 Apr 2010 19:36:31 +0000 (16:36 -0300)
commite53f27b9d9df73461308618151fa6e6392aebd85
tree3a43939d72679d0700c1c72abeaf1fb93c0e7e42
parent97331287ed2c928af6b9f31728d29ef60c3b8cd8
stash away SCM_RIGHTS fd until a getfd command arrives

If there is already a fd in s->msgfd before recvmsg it is
closed by parts that this patch does not touch.  So, only
one descriptor can be "leaked" by attaching it to a command
other than getfd.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c
qemu-char.c