mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
nptl: Remove close from libpthread
The libc version is identical and built with same flags. Checked on x86_64-linux-gnu.
This commit is contained in:
@ -175,7 +175,7 @@ sem_open (const char *name, int oflag, ...)
|
||||
(void) unlink (tmpfname);
|
||||
|
||||
/* Close the file. */
|
||||
(void) __libc_close (fd);
|
||||
close (fd);
|
||||
|
||||
goto try_again;
|
||||
}
|
||||
@ -201,7 +201,7 @@ sem_open (const char *name, int oflag, ...)
|
||||
{
|
||||
/* Do not disturb errno. */
|
||||
int save = errno;
|
||||
__libc_close (fd);
|
||||
close (fd);
|
||||
errno = save;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user