1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdaemon: daemonise to daemonize

Replace daemonise() with daemonize().
This commit is contained in:
Zdenek Kabelac 2024-08-29 22:49:24 +02:00
parent b8a4fda0f7
commit 625c55fd6c
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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;
}