Boost logo

Boost-Commit :

From: gennadiy.rozental_at_[hidden]
Date: 2007-10-22 23:44:01


Author: rogeeff
Date: 2007-10-22 23:44:01 EDT (Mon, 22 Oct 2007)
New Revision: 40322
URL: http://svn.boost.org/trac/boost/changeset/40322

Log:
streamlined handling of SIGPOLL
Text files modified:
   trunk/boost/test/impl/execution_monitor.ipp | 10 +++++++++-
   1 files changed, 9 insertions(+), 1 deletions(-)

Modified: trunk/boost/test/impl/execution_monitor.ipp
==============================================================================
--- trunk/boost/test/impl/execution_monitor.ipp (original)
+++ trunk/boost/test/impl/execution_monitor.ipp 2007-10-22 23:44:01 EDT (Mon, 22 Oct 2007)
@@ -131,6 +131,10 @@
 # define BOOST_TEST_USE_ALT_STACK
 # endif
 
+# if !defined(__CYGWIN__)
+# define BOOST_TEST_CATCH_SIGPOLL
+# endif
+
 # ifdef BOOST_TEST_USE_ALT_STACK
 # define BOOST_TEST_ALT_STACK_SIZE SIGSTKSZ
 # endif
@@ -421,7 +425,7 @@
             }
             break;
 
-#if !defined(__CYGWIN__)
+#if defined(BOOST_TEST_CATCH_SIGPOLL)
 
         case SIGPOLL:
             switch( m_sig_info->si_code ) {
@@ -581,7 +585,9 @@
     signal_action m_SEGV_action;
     signal_action m_BUS_action;
     signal_action m_CHLD_action;
+#ifdef BOOST_TEST_CATCH_SIGPOLL
     signal_action m_POLL_action;
+#endif
     signal_action m_ABRT_action;
     signal_action m_ALRM_action;
 
@@ -605,7 +611,9 @@
 , m_SEGV_action( SIGSEGV, catch_system_errors, attach_dbg, alt_stack )
 , m_BUS_action ( SIGBUS , catch_system_errors, attach_dbg, alt_stack )
 , m_CHLD_action( SIGCHLD, catch_system_errors, attach_dbg, alt_stack )
+#ifdef BOOST_TEST_CATCH_SIGPOLL
 , m_POLL_action( SIGPOLL, catch_system_errors, attach_dbg, alt_stack )
+#endif
 , m_ABRT_action( SIGABRT, catch_system_errors, attach_dbg, alt_stack )
 , m_ALRM_action( SIGALRM, timeout > 0 , attach_dbg, alt_stack )
 {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk