Skip to content

Commit 96abe91

Browse files
committed
Reveal another Qemu bug
1 parent bb7942e commit 96abe91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/posix/socket_timeout_signal_test.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <sys/time.h>
1414
#include <sys/types.h>
1515
#include <unistd.h>
16-
#include "libc/limits.h"
1716

1817
/**
1918
* @fileoverview SO_RCVTIMEO + SA_RESTART interaction test
@@ -109,7 +108,7 @@ void *server_thread(void *arg) {
109108
timeout.tv_sec = 5000000;
110109
timeout.tv_usec = 0;
111110
if (setsockopt(client, SOL_SOCKET, SO_RCVTIMEO, &timeout,
112-
sizeof(timeout) + !IsNetbsd())) {
111+
sizeof(timeout) + (!IsNetbsd() && !IsQemuUser()))) {
113112
perror("setsockopt");
114113
exit(34);
115114
}

0 commit comments

Comments
 (0)