]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-invoke: set exit_status on exec_context_named_iofds() failure
authorMike Yuan <me@yhndnzj.com>
Thu, 30 Oct 2025 14:58:19 +0000 (15:58 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 30 Oct 2025 15:12:14 +0000 (16:12 +0100)
src/core/exec-invoke.c

index 14e2ea8f54af491b4a3550f09bb5904935a74fbe..cb778359fc18953a035ae791c11d7e725b0d60af 100644 (file)
@@ -5073,8 +5073,10 @@ int exec_invoke(
         n_fds = n_socket_fds + n_storage_fds + n_extra_fds;
 
         r = exec_context_named_iofds(context, params, named_iofds);
-        if (r < 0)
+        if (r < 0) {
+                *exit_status = EXIT_FDS;
                 return log_error_errno(r, "Failed to load a named file descriptor: %m");
+        }
 
         rename_process_from_path(command->path);