mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
fdstream: Raise explicit error when iohelper gets SIGPIPE
This happens when virStreamFinish/Abort are called, but iohelper still has data to process.
This commit is contained in:
parent
6b173cf562
commit
c48db92fbd
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user