diff --git a/src/util/vircommand.c b/src/util/vircommand.c index c41bd7f697..c7f1538608 100644 --- a/src/util/vircommand.c +++ b/src/util/vircommand.c @@ -2093,7 +2093,7 @@ virCommandProcessIO(virCommandPtr cmd) } } - if (fds[i].revents & (POLLOUT | POLLERR) && + if (fds[i].revents & (POLLOUT | POLLHUP | POLLERR) && fds[i].fd == cmd->inpipe) { int done;