Skip to content
Snippets Groups Projects
Verified Commit 01ce7f5a authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Fix sigchld test.

parent d458b6cd
No related branches found
No related tags found
No related merge requests found
...@@ -100,13 +100,13 @@ int main(void) { ...@@ -100,13 +100,13 @@ int main(void) {
puts("Writing to (broken) pipe."); puts("Writing to (broken) pipe.");
status = write(fds[1], "B", 1); status = write(fds[1], "B", 1);
ERROR_IF(write, status, != -1); assert(status == -1);
assert(errno == EPIPE); assert(errno == EPIPE);
while (atomic2 == 0) { /*while (atomic2 == 0) {
status = sched_yield(); status = sched_yield();
ERROR_IF(sched_yield, status, == -1); ERROR_IF(sched_yield, status, == -1);
} }*/
puts("SIGSTOP handler successfully executed."); puts("SIGSTOP handler successfully executed.");
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment