Commit ddd7f7fe authored by ager@chromium.org's avatar ager@chromium.org

Do not ignore the result from calls to write(). This avoids a warning

from newer gcc versions.
Review URL: http://codereview.chromium.org/115698

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2029 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a1218cfa
......@@ -280,7 +280,10 @@ static void ExecSubprocess(int* exec_error_fds,
// Only get here if the exec failed. Write errno to the parent to tell
// them it went wrong. If it went well the pipe is closed.
int err = errno;
write(exec_error_fds[kWriteFD], &err, sizeof(err));
int bytes_written;
do {
bytes_written = write(exec_error_fds[kWriteFD], &err, sizeof(err));
} while (bytes_written == -1 && errno == EINTR);
// Return (and exit child process).
}
......
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