From 61b56a8d2151a60ec67a459a9d325b29c5dc3b41 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 18 Apr 2011 18:42:34 -0400 Subject: [PATCH] remove bogus extra logic for close cancellability like all other syscalls, close should return to the caller if and only if it successfully performed its action. it is necessary that the application be able to determine whether the close succeeded. --- src/unistd/close.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/unistd/close.c b/src/unistd/close.c index 231f79ef..728d729b 100644 --- a/src/unistd/close.c +++ b/src/unistd/close.c @@ -4,7 +4,5 @@ int close(int fd) { - int ret = syscall_cp(SYS_close, fd); - if (libc.testcancel) libc.testcancel(); - return ret; + return syscall_cp(SYS_close, fd); } -- 2.25.1