X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Funistd%2Fclose.c;h=e8f813d648dfaac1a098defbaf91b388ebe640c4;hp=728d729b02a06c9f3ea0307a20863525020ad28f;hb=82dc1e2e783815e00a90cd3f681436a80d54a314;hpb=4b49060da09b37e36ae08b49499c4a53b4f53890 diff --git a/src/unistd/close.c b/src/unistd/close.c index 728d729b..e8f813d6 100644 --- a/src/unistd/close.c +++ b/src/unistd/close.c @@ -1,8 +1,11 @@ #include +#include #include "syscall.h" #include "libc.h" int close(int fd) { - return syscall_cp(SYS_close, fd); + int r = __syscall_cp(SYS_close, fd); + if (r == -EINTR) r = -EINPROGRESS; + return __syscall_ret(r); }