X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fclose.c;fp=src%2Funistd%2Fclose.c;h=231f79ef699cfdeedf72cc42505602d1a1ad7e2f;hb=feee98903cd8119d9a3db62589246a940f44a9f5;hp=f52c0ef3a91736264a3c9ae0c06e3182ea44d7dc;hpb=90f09a0dde3b37ebfabc4d3f6e2bb64086b7e804;p=musl 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; }