VirtualBox

Changeset 15024 in vbox


Ignore:
Timestamp:
Dec 5, 2008 9:20:48 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40399
Message:

Fe/Qt4: Systray: Daemonize only on non-Windows.

File:
1 edited

Legend:

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

    r15023 r15024  
    14541454    Assert (sz >= sizeof (VirtualBox_exe));
    14551455    strcpy (cmd, VirtualBox_exe);
    1456 # ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
    14571456    const char * args[] = {path, 0 };
     1457# ifdef RT_OS_WINDOWS
     1458    rc = RTProcCreate (path, args, env, 0, &pid);
    14581459# else
    1459     const char * args[] = {path, 0 };
     1460    rc = RTProcCreate (path, args, env, RTPROC_FLAGS_DAEMONIZE, &pid);
    14601461# endif
    1461     rc = RTProcCreate (path, args, env, RTPROC_FLAGS_DAEMONIZE, &pid);
    14621462    if (RT_FAILURE (rc))
    14631463        LogRel(("Systray: Failed to start new selector window! Path=%s, rc=%Rrc\n", path, rc));
     
    15051505        Assert (sz >= sizeof (VirtualBox_exe));
    15061506        strcpy (cmd, VirtualBox_exe);
     1507        const char * args[] = {path, "-systray", 0 };
    15071508    # ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
    1508         const char * args[] = {path, "-systray", 0 };
     1509        rc = RTProcCreate (path, args, env, 0, &pid);
    15091510    # else
    1510         const char * args[] = {path, "-systray", 0 };
     1511        rc = RTProcCreate (path, args, env, RTPROC_FLAGS_DAEMONIZE, &pid);
    15111512    # endif
    1512         rc = RTProcCreate (path, args, env, RTPROC_FLAGS_DAEMONIZE, &pid);
     1513
    15131514        if (RT_FAILURE (rc))
    15141515        {
Note: See TracChangeset for help on using the changeset viewer.

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