commands: use LXC_CMD_REAP_CLIENT_FD in lxc_cmd_get_cgroup2_fd_callback()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2020-03-11 12:57:22 +01:00
parent ea2a070bc5
commit a804c19ba5
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1298,7 +1298,7 @@ static int lxc_cmd_get_cgroup2_fd_callback(int fd, struct lxc_cmd_req *req,
ret = lxc_abstract_unix_send_fds(fd, &ops->unified->cgfd_con, 1, &rsp, ret = lxc_abstract_unix_send_fds(fd, &ops->unified->cgfd_con, 1, &rsp,
sizeof(rsp)); sizeof(rsp));
if (ret < 0) if (ret < 0)
return log_error(1, "Failed to send cgroup2 fd"); return log_error(LXC_CMD_REAP_CLIENT_FD, "Failed to send cgroup2 fd");
return 0; return 0;
} }