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); }