git: d6cb9e728b37 - main - linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwrite
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Aug 2023 07:37:50 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=d6cb9e728b3737d19da7a5554d1c6b740a29e69d
commit d6cb9e728b3737d19da7a5554d1c6b740a29e69d
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-08-20 07:36:31 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-08-20 07:36:31 +0000
linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwrite
MFC after: 1 month
---
sys/compat/linux/linux_file.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 32aa64559414..c3b69e54d257 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -1002,7 +1002,8 @@ linux_pwrite(struct thread *td, struct linux_pwrite_args *uap)
offset = uap->offset;
#endif
- return (kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, offset));
+ return (linux_enobufs2eagain(td, uap->fd,
+ kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, offset)));
}
#define HALF_LONG_BITS ((sizeof(l_long) * NBBY / 2))