From: Yu Watanabe Date: Fri, 1 Nov 2024 20:57:46 +0000 (+0900) Subject: daemon-util: expose notify_push_fd() X-Git-Tag: v257-rc1~33^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20465bcb1eff8ccd9f5feb0364244ad314ec12a2;p=thirdparty%2Fsystemd.git daemon-util: expose notify_push_fd() It will be used in a later commit. --- diff --git a/src/shared/daemon-util.c b/src/shared/daemon-util.c index aa386b42021..d8aa259ee97 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 cbefa8dd8f5..cbb175cbe13 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);