mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +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/virsysinfo.c
|
||||
src/util/virthreadjob.c
|
||||
src/util/virthreadpool.c
|
||||
src/util/virtime.c
|
||||
src/util/virtpm.c
|
||||
src/util/virtypedparam.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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user