[PATCH v3 05/11] util: Report system error when virThreadCreateFull fails

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

 



Otherwise 'Unknown' error will be returned to client.

Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 po/POTFILES.in           | 1 +
 src/util/virthreadpool.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5316d4f..6d720c0 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -238,6 +238,7 @@ src/util/virstoragefile.c
 src/util/virstring.c
 src/util/virsysinfo.c
 src/util/virthreadjob.c
+src/util/virthreadpool.c
 src/util/virtime.c
 src/util/virtpm.c
 src/util/virtypedparam.c
diff --git a/src/util/virthreadpool.c b/src/util/virthreadpool.c
index 8af4ec0..e2e9fe4 100644
--- a/src/util/virthreadpool.c
+++ b/src/util/virthreadpool.c
@@ -183,6 +183,7 @@ virThreadPoolExpand(virThreadPoolPtr pool, size_t gain, bool priority)
                                 true,
                                 data) < 0) {
             VIR_FREE(data);
+            virReportSystemError(errno, "%s", _("Failed to create thread"));
             goto error;
         }
     }
-- 
2.4.11

--
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]