daemon-util: expose notify_push_fd()

It will be used in a later commit.
This commit is contained in:
Yu Watanabe
2024-11-05 02:55:15 +09:00
parent dc12457bfd
commit 20465bcb1e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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);
+1
View File
@@ -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);