projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6079443
)
GCancellable: Make eventfd() fall back to pipes on EINVAL too
author
Colin Walters
<walters@verbum.org>
Sun, 10 Jul 2011 16:19:15 +0000
(12:19 -0400)
committer
Colin Walters
<walters@verbum.org>
Sun, 10 Jul 2011 16:19:15 +0000
(12:19 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=654232
gio/gcancellable.c
patch
|
blob
|
history
diff --git
a/gio/gcancellable.c
b/gio/gcancellable.c
index
f5cfdd9
..
2974663
100644
(file)
--- a/
gio/gcancellable.c
+++ b/
gio/gcancellable.c
@@
-249,9
+249,11
@@
g_cancellable_open_pipe (GCancellable *cancellable)
g_cancellable_write_cancelled (cancellable);
return;
}
- else if (errno != ENOSYS)
- return;
- /* Fall through on ENOSYS */
+ else if (!(errno == ENOSYS || errno == EINVAL))
+ {
+ return;
+ }
+ /* Fall through on ENOSYS or EINVAL */
#endif
if (g_unix_open_pipe (priv->cancel_pipe, FD_CLOEXEC, NULL))
{