]> git.ipfire.org Git - thirdparty/systemd.git/commit
daemon-util: remove existing fds with the same name from fdstore 37162/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Apr 2025 00:00:35 +0000 (09:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Apr 2025 00:12:43 +0000 (09:12 +0900)
commitf6a2a9ba93c5df37a197cf03552b7f3577341191
treef9c4c75373e0980fd2234c22a61f755e086d3145
parent178596166072dfb4c239f0b22ff201f860e6c139
daemon-util: remove existing fds with the same name from fdstore

Currently, all use cases of notify_push_fd()/notify_push_fdf()
assume that the name of each fd in the fdstore is unique.
For safety, let's remove the existing fds before pushing a new one
to avoid multiple fds with the same name stored in the fdstore.
src/shared/daemon-util.c
src/udev/udev-config.c