diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-22 14:04:31 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-22 14:04:31 +0000 |
| commit | f3b0b82461f45ca6e0bb5e9a06e67cb02662053c (patch) | |
| tree | 6b4b1ac2a4909f49641857ae719221a378418ee0 /src/threading.cpp | |
| parent | fea38f6910f4abb037e2581f28d7592c31991efe (diff) | |
Fix futex
Diffstat (limited to 'src/threading.cpp')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index 684b13bc3..725b58c89 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -656,7 +656,7 @@ gb_internal void futex_wait(Futex *addr, Footex val) { for (;;) { int ret = syscall(SYS_futex, addr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, NULL, NULL, 0); if (ret == -1) { - if (errno != EAGAIN && errno != EINTR) { + if (errno != EAGAIN) { perror("Futex wait"); GB_PANIC("Failed in futex wait!\n"); } else { |