From: Osier Yang Date: Wed, 22 Jun 2011 11:33:24 +0000 (+0800) Subject: util: Correct the error prompt string X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=73b9246df97b8c7f321a6d81a5597b06dd4fb3e5;p=libvirt.git util: Correct the error prompt string virCommandProcessIO: It's reading from stdout or stderr of child, but not writing. --- diff --git a/src/util/command.c b/src/util/command.c index cb682fca4e..9fdeb0bf19 100644 --- a/src/util/command.c +++ b/src/util/command.c @@ -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) {