Browse Source

Fix futex

gingerBill 1 year ago
parent
commit
f3b0b82461
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/threading.cpp

+ 1 - 1
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 {