The branch main has been updated by glebius:

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

commit 0b49929762265776b1d7111e55b451d7d9e00550
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2024-04-08 20:16:51 +0000
Commit:     Gleb Smirnoff <[email protected]>
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");

Reply via email to