core/exec-invoke: set exit_status on exec_context_named_iofds() failure

This commit is contained in:
Mike Yuan
2025-10-30 16:12:14 +01:00
parent 04072ad9ed
commit edb8fcd813
+3 -1
View 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);