From: Erik Skultety Date: Fri, 26 Feb 2016 16:48:03 +0000 (+0100) Subject: util: Report system error when virThreadCreateFull fails X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=79685175937e88f1ac63f2cc10072d5c78a4c66c;p=libvirt.git util: Report system error when virThreadCreateFull fails Otherwise 'Unknown' error will be returned to client. Signed-off-by: Erik Skultety --- diff --git a/po/POTFILES.in b/po/POTFILES.in index ca235268fd..ed82aca7c6 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -235,6 +235,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 8af4ec05d5..e2e9fe4699 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; } }