qemu-devel
[Top][All Lists]
Advanced

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

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


From: alex
Subject: [Qemu-devel] [PATCH] -parallel and -serial on Windows host - second try
Date: Fri, 12 Jan 2007 11:36:06 -0800

This is a second attempt to post, first one did not get through.

This patch fixes -parallel and -serial options work with TCP targets on
Windows host.

Alex.

--- /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) {
+                    break;
+#endif
                 } else {
                     goto fail;
                 }
@@ -2708,7 +2713,6 @@
         else
             qemu_set_fd_handler(s->fd, NULL, tcp_chr_connect, chr);
     }
-
     if (is_listen && is_waitconnect) {
         printf("QEMU waiting for connection on: %s\n", host_str);
         tcp_chr_accept(chr);








reply via email to

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