diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-22 14:01:39 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-22 14:01:39 +0000 |
| commit | fea38f6910f4abb037e2581f28d7592c31991efe (patch) | |
| tree | a448009a5f40fb4cd7d6be0dec5e0d2869e14b41 /src/threading.cpp | |
| parent | 213b2fd0f8059751b0cdd05b904c49109b21d474 (diff) | |
Minor changes to futex implementation on Linux
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 725b58c89..684b13bc3 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) { + if (errno != EAGAIN && errno != EINTR) { perror("Futex wait"); GB_PANIC("Failed in futex wait!\n"); } else { |