diff mbox

Remove __ASSUME_SOCK_CLOEXEC / SOCK_CLOEXEC conditionals in Linux-specific code

Message ID mvmbntjy7v2.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab June 23, 2014, 3:16 p.m. UTC
"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 mbox

Patch

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;
     }