core/exec-invoke: drop duplicate addition of handoff_timestamp_fd to dont_close array
Follow-up for 12001b1bf0
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user