mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 16:22:29 +00:00
Fix pthread_kill_test flake on qemu
This commit is contained in:
parent
732554ce3a
commit
098638cc6c
3 changed files with 20 additions and 16 deletions
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
@ -31,6 +32,8 @@ void CheckForFileLeaks(void) {
|
|||
char *p = msg;
|
||||
char *pe = msg + 256;
|
||||
bool gotsome = false;
|
||||
if (IsQemuUser())
|
||||
usleep(1); // weird qemu mt flake
|
||||
for (int fd = 3; fd < MIN_CLANDESTINE_FD; ++fd) {
|
||||
if (fcntl(fd, F_GETFL) != -1) {
|
||||
if (!gotsome) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue