]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: s/notify_socket/fd_socket/g
authorChristian Brauner <brauner@kernel.org>
Wed, 30 Nov 2022 13:22:53 +0000 (14:22 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Tue, 13 Dec 2022 14:25:45 +0000 (15:25 +0100)
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
src/nspawn/nspawn.c

index 96611058fe9cc0cf5eb39e0438b3f62a918962cd..92d697247dbd567df953783fec91502133c89bfb 100644 (file)
@@ -3631,7 +3631,7 @@ static int outer_child(
                 bool secondary,
                 int pid_socket,
                 int uuid_socket,
-                int notify_socket,
+                int fd_socket,
                 int kmsg_socket,
                 int rtnl_socket,
                 int uid_shift_socket,
@@ -3659,7 +3659,7 @@ static int outer_child(
         assert(directory);
         assert(pid_socket >= 0);
         assert(uuid_socket >= 0);
-        assert(notify_socket >= 0);
+        assert(fd_socket >= 0);
         assert(master_pty_socket >= 0);
         assert(kmsg_socket >= 0);
 
@@ -3711,7 +3711,7 @@ static int outer_child(
                 if (r < 0)
                         return log_error_errno(r, "Failed to pin outer mount namespace: %m");
 
-                l = send_one_fd(notify_socket, mntns_fd, 0);
+                l = send_one_fd(fd_socket, mntns_fd, 0);
                 if (l < 0)
                         return log_error_errno(l, "Failed to send outer mount namespace fd: %m");
                 mntns_fd = safe_close(mntns_fd);
@@ -4026,7 +4026,7 @@ static int outer_child(
         if (pid == 0) {
                 pid_socket = safe_close(pid_socket);
                 uuid_socket = safe_close(uuid_socket);
-                notify_socket = safe_close(notify_socket);
+                fd_socket = safe_close(fd_socket);
                 uid_shift_socket = safe_close(uid_shift_socket);
 
                 /* The inner child has all namespaces that are requested, so that we all are owned by the
@@ -4059,13 +4059,13 @@ static int outer_child(
                 return log_error_errno(SYNTHETIC_ERRNO(EIO),
                                        "Short write while sending machine ID.");
 
-        l = send_one_fd(notify_socket, fd, 0);
+        l = send_one_fd(fd_socket, fd, 0);
         if (l < 0)
                 return log_error_errno(l, "Failed to send notify fd: %m");
 
         pid_socket = safe_close(pid_socket);
         uuid_socket = safe_close(uuid_socket);
-        notify_socket = safe_close(notify_socket);
+        fd_socket = safe_close(fd_socket);
         master_pty_socket = safe_close(master_pty_socket);
         kmsg_socket = safe_close(kmsg_socket);
         rtnl_socket = safe_close(rtnl_socket);