VirtualBox

儲存庫 vbox 的更動 13503


忽略:
時間撮記:
2008-10-22 下午04:55:52 (16 年 以前)
作者:
vboxsync
訊息:

SUPR3HardendedMain: fork before calling TrustedError.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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    /*
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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