From 625c55fd6ce8c905832badd6fc9c4e0403a8aae8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 29 Aug 2024 22:49:24 +0200 Subject: [PATCH] libdaemon: daemonise to daemonize Replace daemonise() with daemonize(). --- libdaemon/server/daemon-server.c | 4 ++-- libdm/dm-tools/dmfilemapd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c index 97839d85a..65c8859cb 100644 --- a/libdaemon/server/daemon-server.c +++ b/libdaemon/server/daemon-server.c @@ -323,7 +323,7 @@ static void _remove_lockfile(const char *file) perror("unlink failed"); } -static void _daemonise(daemon_state s) +static void _daemonize(daemon_state s) { int child_status; int fd; @@ -582,7 +582,7 @@ void daemon_start(daemon_state s) #endif if (!s.foreground) - _daemonise(s); + _daemonize(s); s.log = &_log; s.log->name = s.name; diff --git a/libdm/dm-tools/dmfilemapd.c b/libdm/dm-tools/dmfilemapd.c index 6ee673213..92efda954 100644 --- a/libdm/dm-tools/dmfilemapd.c +++ b/libdm/dm-tools/dmfilemapd.c @@ -624,7 +624,7 @@ check_unlinked: return 1; } -static int _daemonise(struct filemap_monitor *fm) +static int _daemonize(struct filemap_monitor *fm) { pid_t pid = 0; int fd, ffd; @@ -825,7 +825,7 @@ int main(int argc, char **argv) "mode=%s, path=\"%s\"", fm.fd, fm.group_id, _mode_names[fm.mode], fm.path); - if (!_foreground && !_daemonise(&fm)) { + if (!_foreground && !_daemonize(&fm)) { free(fm.path); return 1; } -- 2.43.5