Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2011-09-03 05:32:56 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2011-09-03 05:32:56 +0400
commit167ea318885a8c1ec20fc0ea3ded6197ee49ed7e (patch)
treee61e92761c18ba29ea479d47732ec0e783dde52b /minidlna.c
parent5ca57319c7c29ff8891efe06605065776dedb62b (diff)
* Simplify daemonize ifdefs.
Diffstat (limited to 'minidlna.c')
-rw-r--r--minidlna.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/minidlna.c b/minidlna.c
index 1ce0d52..4fa5f2e 100644
--- a/minidlna.c
+++ b/minidlna.c
@@ -789,14 +789,7 @@ init(int argc, char * * argv)
}
else
{
-#ifdef USE_DAEMON
- if(daemon(0, 0)<0) {
- perror("daemon()");
- }
- pid = getpid();
-#else
pid = daemonize();
-#endif
#ifdef READYNAS
log_init("/var/log/upnp-av.log", "general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn");
#else