sched_yield() is not strong enough to overflow the recv buffer on some
authorclaudio <claudio@openbsd.org>
Tue, 30 Jul 2024 13:28:27 +0000 (13:28 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 30 Jul 2024 13:28:27 +0000 (13:28 +0000)
commit539ef4cc2e5896c1d20e3e179c9c039a0d237c0f
tree2aec030f219a60a553cdcc55149307b9db18217b
parent0ecb11e11f01aec558a75bd6fa0ddb4f77836c1a
sched_yield() is not strong enough to overflow the recv buffer on some
systems. Use a proper sleep using usleep(100) instead.
regress/lib/libc/sys/t_sendrecv.c