Ticket #11146: signalhandling.cpp.patch
File signalhandling.cpp.patch, 817 bytes (added by , 12 years ago) |
---|
-
signalhandling.cpp
old new 83 83 s_defaultHandlerList << SIGINT << SIGTERM << SIGSEGV << SIGABRT 84 84 << SIGFPE << SIGILL; 85 85 #ifndef _WIN32 86 #ifdef Q_OS_MACX 87 s_defaultHandlerList << SIGBUS << SIGUSR1; 88 #else 86 89 s_defaultHandlerList << SIGBUS << SIGRTMIN; 90 #endif 87 91 88 92 if (::socketpair(AF_UNIX, SOCK_STREAM, 0, sigFd)) 89 93 { … … 305 309 306 310 SigHandlerFunc handler = NULL; 307 311 bool allowNullHandler = false; 312 #ifdef Q_OS_MACX 313 if (signum == SIGUSR1) 314 #else 308 315 if (signum == SIGRTMIN) 316 #endif 309 317 { 310 318 // glibc idiots seem to have made SIGRTMIN a macro that expands to a 311 319 // function, so we can't do this in the switch below.