about summary refs log tree commit diff
path: root/src/unistd/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/close.c')
-rw-r--r--src/unistd/close.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/unistd/close.c b/src/unistd/close.c
index f52c0ef3..231f79ef 100644
--- 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;
 }