verify that ttyname refers to the same file as the fd
[musl] / src / unistd / close.c
index 2f1eabd..fa3c6ca 100644 (file)
@@ -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);
 }