about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-18 18:42:34 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-18 18:42:34 -0400
commit61b56a8d2151a60ec67a459a9d325b29c5dc3b41 (patch)
tree529d8346832f6e29eb06c228768b9977ec64c899
parent1bc44a473431228f5b46652740cb967a0de16e9e (diff)
downloadmusl-61b56a8d2151a60ec67a459a9d325b29c5dc3b41.tar.gz
musl-61b56a8d2151a60ec67a459a9d325b29c5dc3b41.tar.xz
musl-61b56a8d2151a60ec67a459a9d325b29c5dc3b41.zip
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.
-rw-r--r--src/unistd/close.c4
1 files changed, 1 insertions, 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);
 }