mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
GCancellable: Make eventfd() fall back to pipes on EINVAL too
https://bugzilla.gnome.org/show_bug.cgi?id=654232
This commit is contained in:
parent
6079443b48
commit
182ed95861
@ -249,9 +249,11 @@ g_cancellable_open_pipe (GCancellable *cancellable)
|
|||||||
g_cancellable_write_cancelled (cancellable);
|
g_cancellable_write_cancelled (cancellable);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (errno != ENOSYS)
|
else if (!(errno == ENOSYS || errno == EINVAL))
|
||||||
return;
|
{
|
||||||
/* Fall through on ENOSYS */
|
return;
|
||||||
|
}
|
||||||
|
/* Fall through on ENOSYS or EINVAL */
|
||||||
#endif
|
#endif
|
||||||
if (g_unix_open_pipe (priv->cancel_pipe, FD_CLOEXEC, NULL))
|
if (g_unix_open_pipe (priv->cancel_pipe, FD_CLOEXEC, NULL))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user