Changeset 15023 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 5, 2008 9:15:22 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r14977 r15023 1459 1459 const char * args[] = {path, 0 }; 1460 1460 # endif 1461 rc = RTProcCreate (path, args, env, 0, &pid);1461 rc = RTProcCreate (path, args, env, RTPROC_FLAGS_DAEMONIZE, &pid); 1462 1462 if (RT_FAILURE (rc)) 1463 1463 LogRel(("Systray: Failed to start new selector window! Path=%s, rc=%Rrc\n", path, rc)); … … 1510 1510 const char * args[] = {path, "-systray", 0 }; 1511 1511 # endif 1512 rc = RTProcCreate (path, args, env, 0, &pid);1512 rc = RTProcCreate (path, args, env, RTPROC_FLAGS_DAEMONIZE, &pid); 1513 1513 if (RT_FAILURE (rc)) 1514 1514 { -
trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp
r14924 r15023 427 427 int main (int argc, char **argv, char **envp) 428 428 { 429 #if 0430 /* 1. Does (at least currently) not work with -startvm.431 * 2. Probably not a good idea with -startvm because we don't see any further432 * 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);436 if (RT_FAILURE(rc))437 {438 RTStrmPrintf(g_pStdErr, "VirtualBox: Failed to daemonize, rc=%Rrc. Exiting.\n", rc);439 exit(1);440 }441 #endif442 #endif443 444 429 /* Initialize VBox Runtime. Initialize the SUPLib as well only if we 445 430 * are really about to start a VM. Don't do this if we are only starting
Note:
See TracChangeset
for help on using the changeset viewer.