Fix sigchld test.

This commit is contained in:
4lDO2
2024-07-18 19:39:02 +02:00
parent d458b6cdcd
commit 01ce7f5aa1
+3 -3
View File
@@ -100,13 +100,13 @@ int main(void) {
puts("Writing to (broken) pipe.");
status = write(fds[1], "B", 1);
ERROR_IF(write, status, != -1);
assert(status == -1);
assert(errno == EPIPE);
while (atomic2 == 0) {
/*while (atomic2 == 0) {
status = sched_yield();
ERROR_IF(sched_yield, status, == -1);
}
}*/
puts("SIGSTOP handler successfully executed.");
return EXIT_SUCCESS;
}