Received: from eggs.gnu.org ([2001:4830:134:3::10]:59913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur1pH-0007N8-WF for qemu-devel@nongnu.org; Mon, 24 Jun 2013 04:08:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur1pG-0002dC-EQ for qemu-devel@nongnu.org; Mon, 24 Jun 2013 04:08:39 -0400 From: Markus Armbruster References: <1372055996-4072-1-git-send-email-kraxel@redhat.com> <1372055996-4072-8-git-send-email-kraxel@redhat.com> Date: Mon, 24 Jun 2013 10:08:35 +0200 In-Reply-To: <1372055996-4072-8-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Mon, 24 Jun 2013 08:39:50 +0200") Message-ID: <87ppvcylq4.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 07/13] qemu-char: fix documentation for telnet+wait socket flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, Luiz Capitulino Gerd Hoffmann writes: > Signed-off-by: Gerd Hoffmann > --- > qapi-schema.json | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/qapi-schema.json b/qapi-schema.json > index a80ee40..a29ce57 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -3185,10 +3185,11 @@ > # @addr: socket address to listen on (server=true) > # or connect to (server=false) > # @server: #optional create server socket (default: true) > -# @wait: #optional wait for connect (not used for server > -# sockets, default: false) > +# @wait: #optional wait for incoming connection on server > +# sockets (default: false). > # @nodelay: #optional set TCP_NODELAY socket option (default: false) > -# @telnet: #optional enable telnet protocol (default: false) > +# @telnet: #optional enable telnet protocol on server > +# sockets (default: false) > # > # Since: 1.4 > ## Yes, both options apply only with server=true (I double-checked). Curiously, qemu_chr_open_socket_fd() puts "telnet" into chr->filename regardless of server. qemu_chr_open_socket() has if (!is_listen) is_waitconnect = 0; Should this perhaps be if (!is_listen) { is_waitconnect = 0; is_telnet = 0; } ?