From f2e7ba1074bb49a323baf255ff15cff1bd686e46 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 28 Feb 2026 22:16:51 +0100 Subject: [PATCH] core/exec-invoke: drop duplicate addition of handoff_timestamp_fd to dont_close array 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 3dff605021..44a1476ce7 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -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;