From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57703 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6gdb-0007Mw-Bb for qemu-devel@nongnu.org; Fri, 15 Oct 2010 05:31:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6gda-00084t-9T for qemu-devel@nongnu.org; Fri, 15 Oct 2010 05:31:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6gda-00084f-2w for qemu-devel@nongnu.org; Fri, 15 Oct 2010 05:31:42 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9F9VfaF015122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 15 Oct 2010 05:31:41 -0400 From: Gerd Hoffmann Date: Fri, 15 Oct 2010 11:31:36 +0200 Message-Id: <1287135097-8914-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1287135097-8914-1-git-send-email-kraxel@redhat.com> References: <1287135097-8914-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] spice-core: fix watching for write events List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede , Gerd Hoffmann From: Hans de Goede Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 8b5e4a8..3fcbeca 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -94,7 +94,7 @@ static void watch_update_mask(SpiceWatch *watch, int event_mask) on_read = watch_read; } if (watch->event_mask & SPICE_WATCH_EVENT_WRITE) { - on_read = watch_write; + on_write = watch_write; } qemu_set_fd_handler(watch->fd, on_read, on_write, watch); } -- 1.7.1