44 #ifndef QT_NO_QWS_SIGNALHANDLER 49 #include <sys/types.h> 66 return signalHandlerInstance();
71 const int signums[] = { SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE,
72 SIGSEGV, SIGTERM, SIGBUS };
73 const int n =
sizeof(signums)/
sizeof(
int);
75 for (
int i = 0; i < n; ++i) {
76 const int signum = signums[i];
81 oldHandlers[signum] = (old == SIG_ERR ? SIG_DFL : old);
92 #if !defined(QT_NO_QWS_MULTIPROCESS) 116 #endif // QT_NO_QWS_SIGNALHANDLER QWSSignalHandlerPrivate()
#define QT_END_NAMESPACE
This macro expands to.
QList< QWSLock * > wslocks
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
static QWSSignalHandler * instance()
#define QT_BEGIN_NAMESPACE
This macro expands to.
QHash< int, qt_sighandler_t > oldHandlers
QObjectCleanupHandler objects
Q_GLOBAL_STATIC(QWSSignalHandlerPrivate, signalHandlerInstance)
void(* qt_sighandler_t)(int)
T takeLast()
Removes the last item in the list and returns it.
static void handleSignal(int signal)
void clear()
Deletes all objects in this cleanup handler.