Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2023 07:37:49 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dfbb3e2aaec2 - main - linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwritev
Message-ID:  <202308200737.37K7bnnJ049801@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=dfbb3e2aaec2709f3e68a6657bf2a656a4adbe27

commit dfbb3e2aaec2709f3e68a6657bf2a656a4adbe27
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 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 27b6e1a5f77d..32aa64559414 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308200737.37K7bnnJ049801>