Definition at line 1788 of file qtestcase.cpp.
◆ FatalSignalHandler()
QTest::FatalSignalHandler::FatalSignalHandler |
( |
| ) |
|
Definition at line 1812 of file qtestcase.cpp.
1816 const int fatalSignals[] = {
1817 SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGFPE, SIGSEGV, SIGPIPE, SIGTERM, 0 };
1820 memset(&act, 0,
sizeof(act));
1824 #if !defined(Q_OS_INTEGRITY) 1825 act.sa_flags = SA_RESETHAND;
1829 sigemptyset(&act.sa_mask);
1830 for (
int i = 0; fatalSignals[i]; ++i)
1831 sigaddset(&act.sa_mask, fatalSignals[i]);
1835 for (
int i = 0; fatalSignals[i]; ++i) {
1836 sigaction(fatalSignals[i], &act, &oldact);
1842 oldact.sa_flags & SA_SIGINFO ||
1844 oldact.sa_handler != SIG_DFL) {
int sigaction(int, const struct sigaction *, struct sigaction *)
◆ ~FatalSignalHandler()
QTest::FatalSignalHandler::~FatalSignalHandler |
( |
| ) |
|
Definition at line 1855 of file qtestcase.cpp.
1859 memset(&act, 0,
sizeof(act));
1860 act.sa_handler = SIG_DFL;
1864 for (
int i = 1; i < 32; ++i) {
int sigaction(int, const struct sigaction *, struct sigaction *)
◆ signal()
void QTest::FatalSignalHandler::signal |
( |
int |
signum | ) |
|
|
staticprivate |
Definition at line 1799 of file qtestcase.cpp.
Referenced by FatalSignalHandler(), and ~FatalSignalHandler().
1801 qFatal(
"Received signal %d", signum);
1802 #if defined(Q_OS_INTEGRITY) 1805 memset(&act, 0,
sizeof(
struct sigaction));
1806 act.sa_handler = SIG_DFL;
Q_CORE_EXPORT void qFatal(const char *,...)
int sigaction(int, const struct sigaction *, struct sigaction *)
◆ handledSignals
sigset_t QTest::FatalSignalHandler::handledSignals |
|
private |
The documentation for this class was generated from the following file: