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
This commit is contained in:
ager@chromium.org 2009-05-22 07:43:41 +00:00
parent a1218cfaa4
commit ddd7f7fe21

View File

@ -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).
}