mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 04:56:14 +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
04e784e0c2
commit
1d4bb3f5d0
@ -499,7 +499,7 @@ g_socket (gint domain,
|
||||
return fd;
|
||||
|
||||
/* 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
|
||||
fd = socket (domain, type, protocol);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user