commit | 3f10390ce85efda876ad72b24b231749233001c8 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Feb 16 18:23:32 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Feb 16 18:23:32 2016 +0000 |
tree | 99fc757d4b5852260b75087c54e1a32dcb665314 | |
parent | 338c4c92cd7a53913688052cbb0e0349158eb5d1 [diff] | |
parent | de0b5156782633e14135291b6f609cd3a14bec20 [diff] |
Merge "Don't go busy loop when waiting child process."
diff --git a/logwrapper/logwrap.c b/logwrapper/logwrap.c index 28d6de7..ccbe0bf 100644 --- a/logwrapper/logwrap.c +++ b/logwrapper/logwrap.c
@@ -408,7 +408,7 @@ if (poll_fds[0].revents & POLLHUP) { int ret; - ret = waitpid(pid, &status, WNOHANG); + ret = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); if (ret < 0) { rc = errno; ALOG(LOG_ERROR, "logwrap", "waitpid failed with %s\n", strerror(errno));