Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
michael@496 | 1 | Index: boost/test/impl/execution_monitor.ipp |
michael@496 | 2 | --- boost/test/impl/execution_monitor.ipp.orig 2009-11-28 10:19:18.000000000 +0100 |
michael@496 | 3 | +++ boost/test/impl/execution_monitor.ipp 2011-06-08 21:40:48.000000000 +0200 |
michael@496 | 4 | @@ -353,6 +353,7 @@ |
michael@496 | 5 | break; |
michael@496 | 6 | } |
michael@496 | 7 | |
michael@496 | 8 | +#if 0 |
michael@496 | 9 | switch( m_sig_info->si_signo ) { |
michael@496 | 10 | case SIGILL: |
michael@496 | 11 | switch( m_sig_info->si_code ) { |
michael@496 | 12 | @@ -508,11 +509,13 @@ |
michael@496 | 13 | case SIGCHLD: |
michael@496 | 14 | switch( m_sig_info->si_code ) { |
michael@496 | 15 | #ifndef BOOST_TEST_LIMITED_SIGNAL_DETAILS |
michael@496 | 16 | +#ifdef CLD_EXITED |
michael@496 | 17 | case CLD_EXITED: |
michael@496 | 18 | report_error( execution_exception::system_error, |
michael@496 | 19 | "child has exited; pid: %d; uid: %d; exit value: %d", |
michael@496 | 20 | (int)m_sig_info->si_pid, (int)m_sig_info->si_uid, (int)m_sig_info->si_status ); |
michael@496 | 21 | break; |
michael@496 | 22 | +#endif |
michael@496 | 23 | case CLD_KILLED: |
michael@496 | 24 | report_error( execution_exception::system_error, |
michael@496 | 25 | "child was killed; pid: %d; uid: %d; exit value: %d", |
michael@496 | 26 | @@ -608,6 +611,7 @@ |
michael@496 | 27 | default: |
michael@496 | 28 | report_error( execution_exception::system_error, "unrecognized signal" ); |
michael@496 | 29 | } |
michael@496 | 30 | +#endif |
michael@496 | 31 | } |
michael@496 | 32 | |
michael@496 | 33 | //____________________________________________________________________________// |
michael@496 | 34 | @@ -817,8 +821,10 @@ |
michael@496 | 35 | { |
michael@496 | 36 | return info->si_signo == SIGCHLD |
michael@496 | 37 | #ifndef BOOST_TEST_LIMITED_SIGNAL_DETAILS |
michael@496 | 38 | +#ifdef CLD_EXITED |
michael@496 | 39 | && info->si_code == CLD_EXITED |
michael@496 | 40 | #endif |
michael@496 | 41 | +#endif |
michael@496 | 42 | #ifdef BOOST_TEST_IGNORE_NON_ZERO_CHILD_CODE |
michael@496 | 43 | ; |
michael@496 | 44 | #else |