[libvirt] [PATCH 1/2] Fix occasional container creation failure due to misuse of grantpt

Serge E. Hallyn serge.hallyn at canonical.com
Fri Oct 14 13:59:43 UTC 2011


Quoting Eric Blake (eblake at redhat.com):
...
> of /dev/pts, then passing that fd back to the parent; the
> alternative solution would be to ditch glibc interfaces and do the
> raw ioctl calls on the master pty ourselves.  Since lxc is already
> Linux-specific, I think that I would favor this approach as being
> simpler (that is, completely ditch virFileOpenTtyAt, and teach lxc
> to just make the raw ioctl calls instead of using grantpt and
> unlockpt, all without forking or passing fds across a socket).
> 
> Serge, is this something you can attempt, or should I look into it more?

Hey Eric,

yup, if it's acceptable to you I think that's the better, simpler
approach.  I'll send out a new patch.

thanks,
-serge




More information about the libvir-list mailing list