mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00: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 */
|
||||
rv = virCgroupAddTask(new_cgroup, pid);
|
||||
if (rv < 0) {
|
||||
virReportSystemError(-rv,
|
||||
_("unable to add id %d task %d to cgroup"),
|
||||
idx, pid);
|
||||
virCgroupRemove(new_cgroup);
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user