projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc44a4
)
remove bogus extra logic for close cancellability
author
Rich Felker
<dalias@aerifal.cx>
Mon, 18 Apr 2011 22:42:34 +0000
(18:42 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 18 Apr 2011 22:42:34 +0000
(18:42 -0400)
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
patch
|
blob
|
history
diff --git
a/src/unistd/close.c
b/src/unistd/close.c
index
231f79e
..
728d729
100644
(file)
--- 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);
}