daemon-util: expose notify_push_fd()
It will be used in a later commit.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user