Minor changes to futex implementation on Linux

This commit is contained in:
gingerBill
2024-02-22 14:01:39 +00:00
parent 213b2fd0f8
commit fea38f6910
2 changed files with 5 additions and 3 deletions

View File

@@ -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 {