From: Andre Noll Date: Thu, 15 Jan 2009 23:39:05 +0000 (+0100) Subject: Rename daemon_init() to daemonize(). X-Git-Tag: v0.3.4~75^2~5 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=7fbd028fc23846f9f410e3876f5ed92d2d9d5d28;hp=11018ebcc1cb1c002fc3488d247a43774ca408d7;p=paraslash.git Rename daemon_init() to daemonize(). --- 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");