Re: [PATCH] qemu: Avoid fd leak on incoming tunneled migration

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

 



On Sun, Jun 25, 2017 at 09:57:43 -0400, John Ferlan wrote:
> 
> 
> On 06/20/2017 12:48 PM, Jiri Denemark wrote:
> > While qemuProcessIncomingDefNew takes an fd argument and stores it in
> > qemuProcessIncomingDef structure, the caller is still responsible for
> > closing the file descriptor.
> > 
> > Introduced by commit v1.2.21-140-ge7c6f4575.
> > 
> > Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> > ---
> >  src/qemu/qemu_migration.c | 1 -
> >  src/qemu/qemu_process.c   | 3 +++
> >  2 files changed, 3 insertions(+), 1 deletion(-)
> > 
> 
> Suppose you could have gone the other way too - adding the close in
> DefFree... I'm fine with this way though.

I tried. It turned out to be quite ugly because there is a patch in
which we don't want DefFree to close the fd and we'd need to hack around
it there.

> Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

Thanks, pushed.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux