提交 c48db92f 编写于 作者: C Cole Robinson

fdstream: Raise explicit error when iohelper gets SIGPIPE

This happens when virStreamFinish/Abort are called, but iohelper
still has data to process.
上级 6b173cf5
......@@ -264,6 +264,10 @@ virFDStreamCloseCommand(struct virFDStreamData *fdst)
if (status != 0) {
if (buf[0] != '\0') {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", buf);
} else if (WIFSIGNALED(status) && WTERMSIG(status) == SIGPIPE) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("I/O helper exited "
"before all data was processed"));
} else {
char *str = virProcessTranslateStatus(status);
virReportError(VIR_ERR_INTERNAL_ERROR,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册