]> xenbits.xensource.com Git - libvirt.git/commit
Introduce virFDStreamOpenPTY
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 10 Mar 2014 12:32:51 +0000 (16:32 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 21 Mar 2014 15:09:36 +0000 (19:09 +0400)
commit4dae396f5a326e721fe95acccac9e6b1549b9946
tree22bf6c3fe7835c81600df7ca802c9959a39e245b
parent80fb32c3201796b45c8a8098563af0a605c536e2
Introduce virFDStreamOpenPTY

Add virFDStreamOpenPTY() function which is a wrapper around
virFDStreamOpenFileInternal() with putting the device it opens into a
raw mode.

Make virChrdevOpen() use virFDStreamOpenPTY() for
VIR_DOMAIN_CHR_TYPE_PTY devices.

This fixes mangled console output when libvirt runs on FreeBSD as it
requires device it opens to be placed into a raw mode explicitly.
src/conf/virchrdev.c
src/fdstream.c
src/fdstream.h
src/libvirt_private.syms