mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Fix futex
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user