提交 4153a741 编写于 作者: L Luyao Huang 提交者: Michal Privoznik

qemuDomainAddCgroupForThread: Don't overwrite the error

Just like in commit 704cf06a, 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: NLuyao Huang <lhuang@redhat.com>
上级 d5d710a1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册