OSDN Git Service
(root)
/
android-x86
/
external-musl-libc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
overhaul pthread cancellation
[android-x86/external-musl-libc.git]
/
src
/
unistd
/
close.c
diff --git
a/src/unistd/close.c
b/src/unistd/close.c
index
f52c0ef
..
231f79e
100644
(file)
--- a/
src/unistd/close.c
+++ b/
src/unistd/close.c
@@
-4,8
+4,7
@@
int close(int fd)
{
- int ret = syscall(SYS_close, fd);
- CANCELPT_BEGIN;
- CANCELPT_END;
+ int ret = syscall_cp(SYS_close, fd);
+ if (libc.testcancel) libc.testcancel();
return ret;
}