VirtualBox

Changeset 14924 in vbox


Ignore:
Timestamp:
Dec 2, 2008 7:53:26 PM (16 years ago)
Author:
vboxsync
Message:

disable daemonize

File:
1 edited

Legend:

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

    r14921 r14924  
    4242#include <qtranslator.h>
    4343
     44#include <iprt/err.h>
    4445#include <iprt/initterm.h>
     46#include <iprt/process.h>
    4547#include <iprt/stream.h>
    4648#ifdef VBOX_WITH_HARDENING
     
    425427int main (int argc, char **argv, char **envp)
    426428{
    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);
    430436    if (RT_FAILURE(rc))
    431437    {
     
    433439        exit(1);
    434440    }
     441#endif
    435442#endif
    436443
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