[PATCH 3/9] fdstream: Raise explicit error when iohelper gets SIGPIPE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This happens when virStreamFinish/Abort are called, but iohelper
still has data to process.
---
 src/fdstream.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/fdstream.c b/src/fdstream.c
index b0a46e9..155311a 100644
--- a/src/fdstream.c
+++ b/src/fdstream.c
@@ -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,
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]