Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5jLf-0006gu-CQ for qemu-devel@nongnu.org; Sat, 13 Jan 2007 08:55:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5jLc-0006gP-RK for qemu-devel@nongnu.org; Sat, 13 Jan 2007 08:55:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5jLc-0006gM-ML for qemu-devel@nongnu.org; Sat, 13 Jan 2007 08:55:04 -0500 Received: from [195.3.96.113] (helo=email.aon.at) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5jLb-0006Ls-Er for qemu-devel@nongnu.org; Sat, 13 Jan 2007 08:55:04 -0500 Date: Sat, 13 Jan 2007 14:56:18 +0100 From: Bernhard Fischer Subject: Re: [Qemu-devel] [PATCH] -parallel and -serial on Windows host - second try Message-ID: <20070113135618.GG14212@aon.at> References: <20070113105745.GE14212@aon.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johannes Schindelin Cc: qemu-devel@nongnu.org On Sat, Jan 13, 2007 at 12:28:26PM +0100, Johannes Schindelin wrote: >Hi, > >On Sat, 13 Jan 2007, Bernhard Fischer wrote: > >> On Fri, Jan 12, 2007 at 11:36:06AM -0800, alex wrote: >> >> > >> >--- /d/qemu/vl.c Fri Jan 12 10:43:12 2007 >> >+++ vl.c Fri Jan 12 10:49:37 2007 >> >@@ -2692,8 +2692,13 @@ >> > if (ret < 0) { >> > err = socket_error(); >> > if (err == EINTR || err == EWOULDBLOCK) { >> >+#ifndef _WIN32 >> > } else if (err == EINPROGRESS) { >> > break; >> >+#else >> >+ } else if (err == EINPROGRESS | err == WSAEALREADY) { >> >> Doesn't sound like it would be correct ("|" != "||"), even for Windows.. > >Well, it might be not intended, but it still works correctly: "==" has a >higher priority than "|", and the value of "err == EINPROGRESS" is 0 or 1, >depending on the value of EINPROGRESS. It is never anything else but 0 or >1, so the operator "|" has the same result as "||" (at least in this >case). Your right, sorry for the noise.