tests/unix_seqpacket: remove workaround for a kernel bug that is no longer

This commit is contained in:
Gleb Smirnoff 2024-04-08 13:16:51 -07:00
parent f992782124
commit 0b49929762

View File

@ -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");