VirtualBox

Changeset 13503 in vbox


Ignore:
Timestamp:
Oct 22, 2008 4:55:52 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38330
Message:

SUPR3HardendedMain: fork before calling TrustedError.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp

    r13458 r13503  
    434434    /*
    435435     * Now try resolve and call the TrustedError entry point if we can
    436      * find it.
    437      */
    438     PFNSUPTRUSTEDERROR pfnTrustedError = supR3HardenedMainGetTrustedError(g_pszSupLibHardenedProgName);
    439     if (pfnTrustedError)
    440         pfnTrustedError(pszWhere, enmWhat, rc, pszMsgFmt, va);
     436     * find it.  We'll fork before we attempt this because that way the
     437     * session management in main will see us exiting immediately (if
     438     * it's invovled with us).
     439     */
     440#if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
     441    int pid = fork();
     442    if (pid <= 0)
     443#endif
     444    {
     445        PFNSUPTRUSTEDERROR pfnTrustedError = supR3HardenedMainGetTrustedError(g_pszSupLibHardenedProgName);
     446        if (pfnTrustedError)
     447            pfnTrustedError(pszWhere, enmWhat, rc, pszMsgFmt, va);
     448    }
    441449
    442450    /*
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