From: Mike Yuan Date: Sat, 28 Feb 2026 21:16:51 +0000 (+0100) Subject: core/exec-invoke: drop duplicate addition of handoff_timestamp_fd to dont_close array X-Git-Tag: v260-rc2~49^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2e7ba1074bb49a323baf255ff15cff1bd686e46;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 3dff6050216..44a1476ce7d 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;