OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
641381c
)
spice: fix spice_chr_add_watch() pre-condition
author
Marc-André Lureau
<marcandre.lureau@gmail.com>
Thu, 28 May 2015 13:04:58 +0000
(15:04 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 29 May 2015 07:56:01 +0000
(09:56 +0200)
Since
e02bc6de30c44fd668dc0d6e1cd1804f2eed3ed3
, add_watch() is called
with G_IO_HUP. Even if spice-qemu-char ignores this flag, the
precondition must be changed.
https://bugzilla.redhat.com/show_bug.cgi?id=
1128992
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
spice-qemu-char.c
patch
|
blob
|
history
diff --git
a/spice-qemu-char.c
b/spice-qemu-char.c
index
0f8903e
..
d41bb74
100644
(file)
--- a/
spice-qemu-char.c
+++ b/
spice-qemu-char.c
@@
-172,7
+172,7
@@
static GSource *spice_chr_add_watch(CharDriverState *chr, GIOCondition cond)
SpiceCharDriver *scd = chr->opaque;
SpiceCharSource *src;
- assert(cond
==
G_IO_OUT);
+ assert(cond
&
G_IO_OUT);
src = (SpiceCharSource *)g_source_new(&SpiceCharSourceFuncs,
sizeof(SpiceCharSource));