diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-18 18:42:34 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-18 18:42:34 -0400 |
commit | 61b56a8d2151a60ec67a459a9d325b29c5dc3b41 (patch) | |
tree | 529d8346832f6e29eb06c228768b9977ec64c899 /src/unistd/close.c | |
parent | 1bc44a473431228f5b46652740cb967a0de16e9e (diff) | |
download | musl-61b56a8d2151a60ec67a459a9d325b29c5dc3b41.tar.gz musl-61b56a8d2151a60ec67a459a9d325b29c5dc3b41.tar.bz2 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.
Diffstat (limited to 'src/unistd/close.c')
-rw-r--r-- | src/unistd/close.c | 4 |
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); } |