Changeset 5060:131aca73bbbd in roaraudio
- Timestamp:
- 06/17/11 20:44:29 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r5047 r5060 180 180 printf("Misc Options:\n\n"); 181 181 printf( 182 #if defined(ROAR_HAVE_FORK) || defined(ROAR_TARGET_WIN32) 182 183 " --daemon - Bring the server into background after init\n" 184 #endif 183 185 " --verbose - Be more verbose, can be used multiple times\n" 184 186 " --terminate - Terminate after last client quited\n" … … 1340 1342 struct roard_config config; 1341 1343 const struct rolestack * rolestack; 1342 #if def ROAR_HAVE_FORK1344 #if defined(ROAR_HAVE_FORK) || defined(ROAR_TARGET_WIN32) 1343 1345 int daemon = 0; 1344 1346 #endif … … 1586 1588 1587 1589 } else if ( strcmp(k, "--demon") == 0 || strcmp(k, "--daemon") == 0 ) { 1588 #if def ROAR_HAVE_FORK1590 #if defined(ROAR_HAVE_FORK) || defined(ROAR_TARGET_WIN32) 1589 1591 daemon = 1; 1590 1592 #else … … 2439 2441 return 1; 2440 2442 2441 #if def ROAR_HAVE_FORK2443 #if defined(ROAR_HAVE_FORK) || defined(ROAR_TARGET_WIN32) 2442 2444 if ( daemon ) { 2443 2445 #ifdef ROAR_HAVE_SYSLOG … … 2447 2449 #endif 2448 2450 2451 #ifdef ROAR_TARGET_WIN32 2452 FreeConsole(); 2453 #else 2454 2449 2455 close(ROAR_STDIN ); 2450 2456 close(ROAR_STDOUT); … … 2458 2464 #endif 2459 2465 clients_set_pid(g_self_client, getpid()); // reset pid as it changed 2466 #endif 2460 2467 } 2461 2468 #endif
Note: See TracChangeset
for help on using the changeset viewer.