Received: from eggs.gnu.org ([2001:4830:134:3::10]:45797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5X6f-0002hZ-60 for qemu-devel@nongnu.org; Mon, 29 Dec 2014 04:59:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5X6a-00080V-4C for qemu-devel@nongnu.org; Mon, 29 Dec 2014 04:59:21 -0500 Message-ID: <54A125E6.4050807@msgid.tls.msk.ru> Date: Mon, 29 Dec 2014 12:59:02 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1419260640-2922-1-git-send-email-dslutz@verizon.com> In-Reply-To: <1419260640-2922-1-git-send-email-dslutz@verizon.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/1] Do not hang on full PTY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Don Slutz , qemu-devel@nongnu.org, QEMU Trivial Cc: Paolo Bonzini , Anthony Liguori 22.12.2014 18:04, Don Slutz wrote: > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -1387,6 +1387,7 @@ static CharDriverState *qemu_chr_open_pty(const char *id, > } > > close(slave_fd); > + qemu_set_nonblock(master_fd); > > chr = qemu_chr_alloc(); Hm. I'm not sure at all this is a trivial change. While the patch itself is trivial indeed, it changes behavour of the file descriptor significantly. Are all the places where this fd is subsequently used prepared for it being non-blocking? Oh well... ;) Thanks, /mjt