]> git.proxmox.com Git - mirror_lxc.git/commitdiff
commands: use LXC_CMD_REAP_CLIENT_FD in lxc_cmd_get_cgroup2_fd_callback()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 11 Mar 2020 11:57:22 +0000 (12:57 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 11 Mar 2020 12:02:17 +0000 (13:02 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c

index b11c3c7fc83262846116d821e3b5d65cd133a2e0..e2156c618120119955860b940282c5a10e3900f6 100644 (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,
                                         sizeof(rsp));
        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;
 }