about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unistd/close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/close.c b/src/unistd/close.c
index 2f1eabd7..fa3c6cab 100644
--- a/src/unistd/close.c
+++ b/src/unistd/close.c
@@ -14,6 +14,6 @@ int close(int fd)
 {
 	fd = __aio_close(fd);
 	int r = __syscall_cp(SYS_close, fd);
-	if (r == -EINTR) r = -EINPROGRESS;
+	if (r == -EINTR) r = 0;
 	return __syscall_ret(r);
 }