mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuDomainAddCgroupForThread: Don't overwrite the error
Just like in commit 704cf06
, if virCgroup*() fails, the error is
already reported. There's no need to overwrite the error with a
generic one and possibly hiding the true root cause of the error.
Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
parent
d5d710a199
commit
4153a74105
@ -4606,9 +4606,6 @@ qemuDomainAddCgroupForThread(virCgroupPtr cgroup,
|
|||||||
/* Add pid/thread to the cgroup */
|
/* Add pid/thread to the cgroup */
|
||||||
rv = virCgroupAddTask(new_cgroup, pid);
|
rv = virCgroupAddTask(new_cgroup, pid);
|
||||||
if (rv < 0) {
|
if (rv < 0) {
|
||||||
virReportSystemError(-rv,
|
|
||||||
_("unable to add id %d task %d to cgroup"),
|
|
||||||
idx, pid);
|
|
||||||
virCgroupRemove(new_cgroup);
|
virCgroupRemove(new_cgroup);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user