Re: [PATCH 3/7] Add option to pass stdin fd to virExec

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

 



Daniel P. Berrange wrote:
> > > If nonzero, uses the supplied fd instead of /dev/null.
> > > Update callers accordingly.
> > 
> >   Looks fine to me, we already have stdout and stderr, it's sensible. +1
> 
> Looks OK, but shouldn't we use -1 as the magic value here, since 0 is also
> a valid file descriptor.

Yeah, that was me taking advantage of the fact that the qemu_vm
structure is initialized to 0.  I'll change that to -1 and make sure
all qemu_vm users initialize stdinFd correctly.

-jim

--
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]