From dfbb3e2aaec2709f3e68a6657bf2a656a4adbe27 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Sun, 20 Aug 2023 10:36:31 +0300 Subject: [PATCH] linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwritev MFC after: 1 month --- sys/compat/linux/linux_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 27b6e1a5f77..32aa6455941 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1065,7 +1065,7 @@ linux_pwritev(struct thread *td, struct linux_pwritev_args *uap) return (error); error = kern_pwritev(td, uap->fd, auio, offset); free(auio, M_IOV); - return (error); + return (linux_enobufs2eagain(td, uap->fd, error)); } int