Reveal another Qemu bug

This commit is contained in:
Justine Tunney 2024-09-17 01:31:55 -07:00
parent bb7942e557
commit 96abe91c29
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -13,7 +13,6 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "libc/limits.h"
/**
* @fileoverview SO_RCVTIMEO + SA_RESTART interaction test
@ -109,7 +108,7 @@ void *server_thread(void *arg) {
timeout.tv_sec = 5000000;
timeout.tv_usec = 0;
if (setsockopt(client, SOL_SOCKET, SO_RCVTIMEO, &timeout,
sizeof(timeout) + !IsNetbsd())) {
sizeof(timeout) + (!IsNetbsd() && !IsQemuUser()))) {
perror("setsockopt");
exit(34);
}