Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2024 20:29:41 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0b4992976226 - main - tests/unix_seqpacket: remove workaround for a kernel bug that is no longer
Message-ID:  <202404082029.438KTfOP041559@gitrepo.freebsd.org>

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

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

commit 0b49929762265776b1d7111e55b451d7d9e00550
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-04-08 20:16:51 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-04-08 20:16:51 +0000

    tests/unix_seqpacket: remove workaround for a kernel bug that is no longer
---
 tests/sys/kern/unix_seqpacket_test.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/sys/kern/unix_seqpacket_test.c b/tests/sys/kern/unix_seqpacket_test.c
index 7c7c37a3cf0a..dc5f89270a07 100644
--- a/tests/sys/kern/unix_seqpacket_test.c
+++ b/tests/sys/kern/unix_seqpacket_test.c
@@ -260,12 +260,7 @@ test_pipe_simulator(int sndbufsize, int rcvbufsize)
 			memset(sndbuf, num_sent, pktsize);
 			ssize = send(sv[0], sndbuf, pktsize, MSG_EOR);
 			if (ssize < 0) {
-				/*
-				 * XXX: This is bug-compatible with the kernel.
-				 * The kernel returns EMSGSIZE when it should
-				 * return EAGAIN
-				 */
-				if (errno == EAGAIN || errno == EMSGSIZE)
+				if (errno == EAGAIN)
 					currently_sending = false;
 				else {
 					perror("send");



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