diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-21 23:28:35 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-21 23:30:14 (GMT) |
commit | b9b6258729585803e00b71280e175618b6bd50c2 (patch) | |
tree | aa22734448d001e29c78bb1d28667ea43b621ab4 /src/testlib | |
parent | 685e98b24ce27fee3085e9f2359494960a7952ff (diff) | |
download | Qt-b9b6258729585803e00b71280e175618b6bd50c2.zip Qt-b9b6258729585803e00b71280e175618b6bd50c2.tar.gz Qt-b9b6258729585803e00b71280e175618b6bd50c2.tar.bz2 |
Fixed valgrind warnings related to sigaction from every testcase.
Whoops, don't do sigaction for (nonexistent) signal 0.
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qtestcase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 5de37dc..1d0bbcf 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -1480,7 +1480,7 @@ FatalSignalHandler::~FatalSignalHandler() struct sigaction oldact; - for (int i = 0; i < 32; ++i) { + for (int i = 1; i < 32; ++i) { if (!sigismember(&handledSignals, i)) continue; sigaction(i, &act, &oldact); |