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)
again:
ret = waitpid(pid, &status, 0);
if (ret == -1) {
if (errno == -EINTR)
if (errno == EINTR)
goto again;
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