From patchwork Tue Nov 2 11:56:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 69883 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by ozlabs.org (Postfix) with ESMTP id DB3ED1007D5 for ; Wed, 3 Nov 2010 00:54:52 +1100 (EST) Received: from localhost ([127.0.0.1]:46398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDHEo-0000Ls-81 for incoming@patchwork.ozlabs.org; Tue, 02 Nov 2010 09:49:22 -0400 Received: from [140.186.70.92] (port=36134 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDGw3-0004PX-1W for qemu-devel@nongnu.org; Tue, 02 Nov 2010 09:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDFU8-0004vV-DX for qemu-devel@nongnu.org; Tue, 02 Nov 2010 07:57:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDFU8-0004v4-3o for qemu-devel@nongnu.org; Tue, 02 Nov 2010 07:57:04 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA2Bv3Lx018970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Nov 2010 07:57:03 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-20.ams2.redhat.com [10.36.4.20]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oA2Bv1Wi012851; Tue, 2 Nov 2010 07:57:01 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 12D4C45827; Tue, 2 Nov 2010 12:56:59 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 2 Nov 2010 12:56:57 +0100 Message-Id: <1288699019-18711-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1288699019-18711-1-git-send-email-kraxel@redhat.com> References: <1288699019-18711-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Hans de Goede , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 1/3] spice-core: fix watching for write events X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 6a1cf17..45807ed 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -95,7 +95,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); }