mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
util: Report system error when virThreadCreateFull fails
Otherwise 'Unknown' error will be returned to client. Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
396f80519e
commit
7968517593
@ -235,6 +235,7 @@ src/util/virstoragefile.c
|
|||||||
src/util/virstring.c
|
src/util/virstring.c
|
||||||
src/util/virsysinfo.c
|
src/util/virsysinfo.c
|
||||||
src/util/virthreadjob.c
|
src/util/virthreadjob.c
|
||||||
|
src/util/virthreadpool.c
|
||||||
src/util/virtime.c
|
src/util/virtime.c
|
||||||
src/util/virtpm.c
|
src/util/virtpm.c
|
||||||
src/util/virtypedparam.c
|
src/util/virtypedparam.c
|
||||||
|
@ -183,6 +183,7 @@ virThreadPoolExpand(virThreadPoolPtr pool, size_t gain, bool priority)
|
|||||||
true,
|
true,
|
||||||
data) < 0) {
|
data) < 0) {
|
||||||
VIR_FREE(data);
|
VIR_FREE(data);
|
||||||
|
virReportSystemError(errno, "%s", _("Failed to create thread"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user