Commit 71b9b8ed by Christian Seiler Committed by Serge Hallyn

wait_for_pid: Fix EINTR check

parent d1240f03
...@@ -255,7 +255,7 @@ int wait_for_pid(pid_t pid) ...@@ -255,7 +255,7 @@ int wait_for_pid(pid_t pid)
again: again:
ret = waitpid(pid, &status, 0); ret = waitpid(pid, &status, 0);
if (ret == -1) { if (ret == -1) {
if (errno == -EINTR) if (errno == EINTR)
goto again; goto again;
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment