qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] -parallel and -serial on Windows host - second


From: Johannes Schindelin
Subject: Re: [Qemu-devel] [PATCH] -parallel and -serial on Windows host - second try
Date: Sat, 13 Jan 2007 12:28:26 +0100 (CET)

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).

Ciao,
Dscho





reply via email to

[Prev in Thread] Current Thread [Next in Thread]