mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
gio/gsocket.c: Fix error code checks when SOCK_CLOEXEC is defined but
not supported on GNU/Hurd. https://bugzilla.gnome.org/show_bug.cgi?id=708266
This commit is contained in:
parent
c8de2b11bb
commit
3cff224675
@ -499,7 +499,7 @@ g_socket (gint domain,
|
|||||||
return fd;
|
return fd;
|
||||||
|
|
||||||
/* It's possible that libc has SOCK_CLOEXEC but the kernel does not */
|
/* It's possible that libc has SOCK_CLOEXEC but the kernel does not */
|
||||||
if (fd < 0 && errno == EINVAL)
|
if (fd < 0 && (errno == EINVAL || errno == EPROTOTYPE))
|
||||||
#endif
|
#endif
|
||||||
fd = socket (domain, type, protocol);
|
fd = socket (domain, type, protocol);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user