]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: close fds we receive via sd_notify() and cannot make use of asynchronously 34801/head
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Oct 2024 07:46:16 +0000 (09:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 17 Oct 2024 07:50:57 +0000 (09:50 +0200)
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

index b9ea79a7adacc214e7410fce23875f126063854f..8e033c69c4244df0800909a91191b1d0f4fbe280 100644 (file)
@@ -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);