Fork first, ask questions later

This commit is contained in:
Ron Pedde 2003-12-03 20:18:01 +00:00
parent 47148ed0f6
commit 988f0e5b77
1 changed files with 5 additions and 5 deletions

View File

@ -332,6 +332,11 @@ int main(int argc, char *argv[]) {
}
}
if(config.use_mdns) {
fprintf(stderr,"Starting rendezvous daemon\n");
rend_init(&config.rend_pid,config.servername, config.port);
}
DPRINTF(ERR_DEBUG,"Initializing database\n");
/* Initialize the database before starting */
@ -371,11 +376,6 @@ int main(int argc, char *argv[]) {
ws_registerhandler(server,"^/logout$",daap_handler,NULL,0);
ws_registerhandler(server,"^/databases/.*",daap_handler,NULL,0);
if(config.use_mdns) {
fprintf(stderr,"Starting rendezvous daemon\n");
rend_init(&config.rend_pid,config.servername, config.port);
}
config.stop=0;
while(!config.stop)