GNOME Bugzilla – Bug 692332
GNetworkMonitorNetlink: make the netlink socket cloexec
Last modified: 2013-01-23 13:49:33 UTC
Noticed while playing with bug 672102 comment 129 Alternative naming suggestions for g_socket() accepted.
Created attachment 234145 [details] [review] 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.)
Review of attachment 234145 [details] [review]: Looks fine to me
Attachment 234145 [details] pushed as 5932e16 - GNetworkMonitorNetlink: make the netlink socket cloexec