]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Report system error when virThreadCreateFull fails
authorErik Skultety <eskultet@redhat.com>
Fri, 26 Feb 2016 16:48:03 +0000 (17:48 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 18 Apr 2016 15:06:54 +0000 (17:06 +0200)
Otherwise 'Unknown' error will be returned to client.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
po/POTFILES.in
src/util/virthreadpool.c

index ca235268fd3f3e936dbd13d3793ad610d44f0777..ed82aca7c6789436ec951e99ae30830a375a81dc 100644 (file)
@@ -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
index 8af4ec05d54390e8de8ca7d3761d4ed33d36077e..e2e9fe4699388e9de201cf95f9f8349537c836c7 100644 (file)
@@ -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;
         }
     }