VirtualBox

Changeset 32374 in vbox


Ignore:
Timestamp:
Sep 10, 2010 8:58:01 AM (14 years ago)
Author:
vboxsync
Message:

Runtime/r3/coredumper: remove SIGUSR2 when disabling dumper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp

    r32359 r32374  
    23052305     * Remove core dump signal handler & reset variables.
    23062306     */
    2307     signal(SIGSEGV, SIG_DFL);
    2308     signal(SIGBUS, SIG_DFL);
    2309     ASMAtomicWriteBool(&g_fCoreDumpSignalSetup, false);
     2307    if (ASMAtomicReadBool(&g_fCoreDumpSignalSetup) == true)
     2308    {
     2309        signal(SIGSEGV, SIG_DFL);
     2310        signal(SIGBUS, SIG_DFL);
     2311        signal(SIGUSR2, SIG_DFL);
     2312        ASMAtomicWriteBool(&g_fCoreDumpSignalSetup, false);
     2313    }
    23102314
    23112315    RT_ZERO(g_szCoreDumpDir);
    23122316    RT_ZERO(g_szCoreDumpFile);
     2317    ASMAtomicWriteU32(&g_fCoreDumpFlags, 0);
    23132318    return VINF_SUCCESS;
    23142319}
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