]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
daemon-util: expose notify_push_fd()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Nov 2024 20:57:46 +0000 (05:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Nov 2024 17:55:15 +0000 (02:55 +0900)
It will be used in a later commit.

src/shared/daemon-util.c
src/shared/daemon-util.h

index aa386b42021e243c06eb2b50e901759f788ce011..d8aa259ee97199a883552bd2227741e4e1414edb 100644 (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);
index cbefa8dd8f50f3812ed35590aee049ceb085a701..cbb175cbe13823b923b17eb092e11ccb047c0236 100644 (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);