From 4b3d7feb1944ad627879c12a23edcced24e2c6f7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Oct 2024 09:46:16 +0200 Subject: [PATCH] pid1: close fds we receive via sd_notify() and cannot make use of asynchronously This addresses #11112 fully. It mostly was addressed by 99620f457ed0886852ba18c9093b59767299121c already, but for fds not even passed to the fdstore, this adds the missing asynchronous close codepath. Fixes: #11112 --- src/core/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/manager.c b/src/core/manager.c index b9ea79a7ad..8e033c69c4 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -2793,7 +2793,7 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t } } - _cleanup_fdset_free_ FDSet *fds = NULL; + _cleanup_(fdset_free_asyncp) FDSet *fds = NULL; if (n_fds > 0) { assert(fd_array); -- 2.25.1