Changeset 14924 in vbox
- Timestamp:
- Dec 2, 2008 7:53:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp
r14921 r14924 42 42 #include <qtranslator.h> 43 43 44 #include <iprt/err.h> 44 45 #include <iprt/initterm.h> 46 #include <iprt/process.h> 45 47 #include <iprt/stream.h> 46 48 #ifdef VBOX_WITH_HARDENING … … 425 427 int main (int argc, char **argv, char **envp) 426 428 { 427 #if (defined(VBOX_GUI_WITH_SYSTRAY) && (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined (RT_OS_SOLARIS) || defined(RT_OS_FREEBSD))) 428 rc = RTProcDaemonize(false /* fNoChDir */, false /* fNoClose */, 429 NULL); 429 #if 0 430 /* 1. Does (at least currently) not work with -startvm. 431 * 2. Probably not a good idea with -startvm because we don't see any further 432 * messages on the console */ 433 #if defined(VBOX_GUI_WITH_SYSTRAY) && \ 434 (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined (RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)) 435 int rc = RTProcDaemonize(false /* fNoChDir */, false /* fNoClose */, NULL); 430 436 if (RT_FAILURE(rc)) 431 437 { … … 433 439 exit(1); 434 440 } 441 #endif 435 442 #endif 436 443
Note:
See TracChangeset
for help on using the changeset viewer.