mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Reveal another Qemu bug
This commit is contained in:
parent
bb7942e557
commit
96abe91c29
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue