* Simplify daemonize ifdefs.

This commit is contained in:
Justin Maggard
2011-09-03 01:32:56 +00:00
parent ef37d2e993
commit 4857493e4f
3 changed files with 11 additions and 16 deletions

View File

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