]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-invoke: drop duplicate addition of handoff_timestamp_fd to dont_close array
authorMike Yuan <me@yhndnzj.com>
Sat, 28 Feb 2026 21:16:51 +0000 (22:16 +0100)
committerMike Yuan <me@yhndnzj.com>
Sun, 1 Mar 2026 12:55:39 +0000 (13:55 +0100)
Follow-up for 12001b1bf067339db089d52e08fd0b4c6a9945df

It is part of the keep_fds array already, which is intended
for fds that need to survive until the very end of executor
runtime, i.e. across the second close_all_fds() call.

src/core/exec-invoke.c

index 3dff6050216d2784b9b9944700eef0481ef637a9..44a1476ce7d1250327f3f275c40c2d94854980a6 100644 (file)
@@ -4293,7 +4293,7 @@ static int close_remaining_fds(
                 size_t n_fds) {
 
         size_t n_dont_close = 0;
-        int dont_close[n_fds + 19];
+        int dont_close[n_fds + 18];
 
         assert(params);
         assert(runtime);
@@ -4330,9 +4330,6 @@ static int close_remaining_fds(
         if (params->user_lookup_fd >= 0)
                 dont_close[n_dont_close++] = params->user_lookup_fd;
 
-        if (params->handoff_timestamp_fd >= 0)
-                dont_close[n_dont_close++] = params->handoff_timestamp_fd;
-
         if (params->pidref_transport_fd >= 0)
                 dont_close[n_dont_close++] = params->pidref_transport_fd;