Remove __ASSUME_SOCK_CLOEXEC / SOCK_CLOEXEC conditionals in Linux-specific code
Andreas Schwab
schwab@suse.de
Mon Jun 23 15:16:00 GMT 2014
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> -
> - /* Make sure the descriptor is closed on exec. */
> - if (have_sock_cloexec < 0
> - && fcntl (netlink_socket, F_SETFD, FD_CLOEXEC) != 0)
> - goto errout;
That's the last use. Committed.
Andreas.
* nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
Remove unused errout label.
diff --git a/nptl/sysdeps/unix/sysv/linux/mq_notify.c b/nptl/sysdeps/unix/sysv/linux/mq_notify.c
index 6893d8c..d50a9f2 100644
--- a/nptl/sysdeps/unix/sysv/linux/mq_notify.c
+++ b/nptl/sysdeps/unix/sysv/linux/mq_notify.c
@@ -209,7 +209,6 @@ init_mq_netlink (void)
if (err != 0)
{
- errout:
close_not_cancel_no_status (netlink_socket);
netlink_socket = -1;
}
--
2.0.0
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list