From 16013c560e189bd0c4fb58e038c0f449542dba7a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 16 Jul 2017 11:19:51 +0000 Subject: Add egidingroups sysdeps, change fd_close() to void and saving errno, propagate changes --- src/libstddjb/socketpair_internal.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libstddjb/socketpair_internal.c') diff --git a/src/libstddjb/socketpair_internal.c b/src/libstddjb/socketpair_internal.c index a1e64c5..a31228f 100644 --- a/src/libstddjb/socketpair_internal.c +++ b/src/libstddjb/socketpair_internal.c @@ -44,12 +44,8 @@ int socketpair_internal (int domain, int type, int protocol, unsigned int flags, return 0 ; err: - { - int e = errno ; - fd_close(fd[1]) ; - fd_close(fd[0]) ; - errno = e ; - } + fd_close(fd[1]) ; + fd_close(fd[0]) ; return -1 ; } -- cgit v1.2.3