From 73b9246df97b8c7f321a6d81a5597b06dd4fb3e5 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Wed, 22 Jun 2011 19:33:24 +0800 Subject: [PATCH] util: Correct the error prompt string virCommandProcessIO: It's reading from stdout or stderr of child, but not writing. --- src/util/command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {