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);