Check for EINTR in sys/posix test

This commit is contained in:
Feoramund
2024-09-15 23:58:03 -04:00
parent d38f5ffb49
commit 16ef59700b

View File

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