VirtualBox

Changeset 14920 in vbox for trunk/src


Ignore:
Timestamp:
Dec 2, 2008 4:42:31 PM (16 years ago)
Author:
vboxsync
Message:

Fe/Qt4: Systray: Daemonize processes for Linux/Mac/Solaris. Hope this doesn't break anything ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp

    r14912 r14920  
    425425int main (int argc, char **argv, char **envp)
    426426{
     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);
     430    if (RT_FAILURE(rc))
     431    {
     432        RTStrmPrintf(g_pStdErr, "VirtualBox: Failed to daemonize, rc=%Rrc. Exiting.\n", rc);
     433        exit(1);
     434    }
     435#endif
     436
    427437    /* Initialize VBox Runtime. Initialize the SUPLib as well only if we
    428438     * 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette