From 53e2c044b6dcf63a1f881b3acd7fcfd3ffab89f9 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 23 Jun 2010 04:52:49 +0000 Subject: QPID-2388: Do not unmask signals whilst waiting for IO to happen - The client and common libraries do not use signals at all so there is no real reason to allow signal handling on IO threads. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957109 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/DispatcherTest.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/DispatcherTest.cpp b/cpp/src/tests/DispatcherTest.cpp index 17b3b4e3e6..41e605499f 100644 --- a/cpp/src/tests/DispatcherTest.cpp +++ b/cpp/src/tests/DispatcherTest.cpp @@ -161,12 +161,8 @@ int main(int /*argc*/, char** /*argv*/) wh->startWatch(poller); // Set up a regular itimer interupt - - // Ignore signal in this thread - ::sigset_t sm; - ::sigemptyset(&sm); - ::sigaddset(&sm, SIGRTMIN); - ::pthread_sigmask(SIG_BLOCK, &sm, 0); + // We assume that this thread will handle the signals whilst sleeping + // as the Poller threads have signal handling blocked // Signal handling struct ::sigaction sa; -- cgit v1.2.1