
10 Mar
2014
10 Mar
'14
1:27 p.m.
Daniel P. Berrange wrote:
One further idea I just had - in QEMU code util/qemu-openpty.c we call cfmakeraw()/tcsetattr on the PTY slave file descriptor. On Linux at least this affects both ends of the device, but I wonder if there's perhaps a need to call this on the master file descriptor as well as or instead of on the slave file descriptor ? Or perhaps the client (in this case libvirtd) itself has to call cfmakeraw/tcsetattr since although its opening the same slave, it is a different file descriptor for the slave
Thanks a lot for pointing this out. Manually placing the device into a raw mode works indeed! Roman Bogorodskiy