Browse Source

fix error interrupt error check

Laytan Laats 11 months ago
parent
commit
9973e0255c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/core/sys/posix/structs.odin

+ 1 - 1
tests/core/sys/posix/structs.odin

@@ -63,7 +63,7 @@ execute_struct_checks :: proc(t: ^testing.T) {
 		waiting: for {
 			status: i32
 			wpid := posix.waitpid(pid, &status, {})
-			if status == posix.EINTR {
+			if status == -1 && posix.errno() == .EINTR {
 				continue
 			}
 			if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {