From 0b49929762265776b1d7111e55b451d7d9e00550 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 8 Apr 2024 13:16:51 -0700 Subject: [PATCH] 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");