util: Correct the error prompt string

virCommandProcessIO: It's reading from stdout or stderr of child,
but not writing.
This commit is contained in:
Osier Yang 2011-06-22 19:33:24 +08:00
parent 20d5e9db82
commit 73b9246df9

View File

@ -1504,7 +1504,9 @@ virCommandProcessIO(virCommandPtr cmd)
if (errno != EINTR &&
errno != EAGAIN) {
virReportSystemError(errno, "%s",
_("unable to write to child input"));
(fds[i].fd == outfd) ?
_("unable to read child stdout") :
_("unable to read child stderr"));
goto cleanup;
}
} else if (done == 0) {