From 7fbd028fc23846f9f410e3876f5ed92d2d9d5d28 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 16 Jan 2009 00:39:05 +0100 Subject: [PATCH] Rename daemon_init() to daemonize(). --- audiod.c | 2 +- daemon.c | 2 +- daemon.h | 2 +- server.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/audiod.c b/audiod.c index 12aa9d7a..3205400c 100644 --- a/audiod.c +++ b/audiod.c @@ -1160,7 +1160,7 @@ int main(int argc, char *argv[]) init_command_task(cmd_task); if (conf.daemon_given) - daemon_init(); + daemonize(); register_task(&sig_task->task); register_task(&cmd_task->task); diff --git a/daemon.c b/daemon.c index 6c1321b2..e35deba2 100644 --- a/daemon.c +++ b/daemon.c @@ -22,7 +22,7 @@ * * \sa fork(2), setsid(2), dup(2). */ -void daemon_init(void) +void daemonize(void) { pid_t pid; int null; diff --git a/daemon.h b/daemon.h index 4f071361..ebf32f82 100644 --- a/daemon.h +++ b/daemon.h @@ -1,7 +1,7 @@ /** \file daemon.h exported symbols from daemon.c */ -void daemon_init(void); +void daemonize(void); FILE *open_log(const char *logfile_name); void close_log(FILE* logfile); void log_welcome(const char *whoami, int loglevel); diff --git a/server.c b/server.c index 1fadf727..7b823dc9 100644 --- a/server.c +++ b/server.c @@ -586,7 +586,7 @@ static void server_init(int argc, char **argv) init_user_list(user_list_file); /* become daemon */ if (conf.daemon_given) - daemon_init(); + daemonize(); PARA_NOTICE_LOG("initializing audio format handlers\n"); afh_init(); PARA_NOTICE_LOG("initializing the audio file selector\n"); -- 2.39.5