summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-11-01 21:57:46 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-04 18:55:15 +0100
commit20465bcb1eff8ccd9f5feb0364244ad314ec12a2 (patch)
treeafc367e9165d4e9cdefbbd272433199051beb81c /src/shared
parentnetwork/address: slightly optimize link_address_is_dynamic() (diff)
downloadsystemd-20465bcb1eff8ccd9f5feb0364244ad314ec12a2.tar.xz
systemd-20465bcb1eff8ccd9f5feb0364244ad314ec12a2.zip
daemon-util: expose notify_push_fd()
It will be used in a later commit.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/daemon-util.c2
-rw-r--r--src/shared/daemon-util.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/daemon-util.c b/src/shared/daemon-util.c
index aa386b4202..d8aa259ee9 100644
--- a/src/shared/daemon-util.c
+++ b/src/shared/daemon-util.c
@@ -45,7 +45,7 @@ int close_and_notify_warn(int fd, const char *name) {
return safe_close(fd);
}
-static int notify_push_fd(int fd, const char *name) {
+int notify_push_fd(int fd, const char *name) {
_cleanup_free_ char *state = NULL;
assert(fd >= 0);
diff --git a/src/shared/daemon-util.h b/src/shared/daemon-util.h
index cbefa8dd8f..cbb175cbe1 100644
--- a/src/shared/daemon-util.h
+++ b/src/shared/daemon-util.h
@@ -25,6 +25,7 @@ static inline void notify_on_cleanup(const char **p) {
int notify_remove_fd_warnf(const char *format, ...) _printf_(1, 2);
int close_and_notify_warn(int fd, const char *name);
+int notify_push_fd(int fd, const char *name);
int notify_push_fdf(int fd, const char *format, ...) _printf_(2, 3);
int notify_reloading_full(const char *status);