Ticket #11146: signalhandling.cpp.patch

File signalhandling.cpp.patch, 817 bytes (added by mythtv@…, 7 years ago)

patch switching signals

  • signalhandling.cpp

    old new  
    8383        s_defaultHandlerList << SIGINT << SIGTERM << SIGSEGV << SIGABRT
    8484                             << SIGFPE << SIGILL;
    8585#ifndef _WIN32
     86#ifdef Q_OS_MACX
     87        s_defaultHandlerList << SIGBUS << SIGUSR1;
     88#else
    8689        s_defaultHandlerList << SIGBUS << SIGRTMIN;
     90#endif
    8791
    8892    if (::socketpair(AF_UNIX, SOCK_STREAM, 0, sigFd))
    8993    {
     
    305309
    306310    SigHandlerFunc handler = NULL;
    307311    bool allowNullHandler = false;
     312#ifdef Q_OS_MACX
     313    if (signum == SIGUSR1)
     314#else
    308315    if (signum == SIGRTMIN)
     316#endif
    309317    {
    310318        // glibc idiots seem to have made SIGRTMIN a macro that expands to a
    311319        // function, so we can't do this in the switch below.