musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unistd/close.c 5
1 files changed, 4 insertions, 1 deletions
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 <unistd.h>
+#include <errno.h>
#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);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月13日 20:16:26 +0000

AltStyle によって変換されたページ (->オリジナル) /