From: Rich Felker Date: Mon, 18 Apr 2011 22:42:34 +0000 (-0400) Subject: remove bogus extra logic for close cancellability X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=61b56a8d2151a60ec67a459a9d325b29c5dc3b41 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. --- 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); }