GNetworkMonitorNetlink: make the netlink socket cloexec
authorDan Winship <danw@gnome.org>
Tue, 22 Jan 2013 21:39:49 +0000 (16:39 -0500)
committerDan Winship <danw@gnome.org>
Wed, 23 Jan 2013 13:48:32 +0000 (08:48 -0500)
commit5932e16acda9434cd4e9d76cf6faba4b8217357f
treed171a4de0d5c289b65add140e19997e780d0cc6f
parent2476dd24d7c30dbc04a37fbac6a2fa7e2551ede9
GNetworkMonitorNetlink: make the netlink socket cloexec

Use the same code GSocket does, to try SOCK_CLOEXEC first, and then
fall back to FD_CLOEXEC if it fails. (And fix that code to not call
fcntl if SOCK_CLOEXEC worked.)

https://bugzilla.gnome.org/show_bug.cgi?id=692332
gio/gnetworkingprivate.h
gio/gnetworkmonitornetlink.c
gio/gsocket.c