diff options
author | johnc <johnc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-12-06 21:13:16 +0000 |
---|---|---|
committer | johnc <johnc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-12-06 21:13:16 +0000 |
commit | 667369e77a26fd10b5c5279919afb17400c7a0c0 (patch) | |
tree | 5ebabfcd3f3c756b51ab6eb61de68a6fcaa7a3f3 /ACE/tests/Bug_2659_Regression_Test.cpp | |
parent | 19d7b5435c542c5dfc896bb94061658619dded08 (diff) | |
download | ATCD-667369e77a26fd10b5c5279919afb17400c7a0c0.tar.gz |
Wed Dec 6 21:06:37 UTC 2006 Ciju John <johnc@ociweb.com>
* tests/Bug_2659_Regression_Test.cpp:
Compile failure on RTEMS due to non-ANSI signal API on the
platform. Fixed by casting function ptr to proper type.
Diffstat (limited to 'ACE/tests/Bug_2659_Regression_Test.cpp')
-rw-r--r-- | ACE/tests/Bug_2659_Regression_Test.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ACE/tests/Bug_2659_Regression_Test.cpp b/ACE/tests/Bug_2659_Regression_Test.cpp index 267f46d0117..2dd48ea3bce 100644 --- a/ACE/tests/Bug_2659_Regression_Test.cpp +++ b/ACE/tests/Bug_2659_Regression_Test.cpp @@ -96,11 +96,8 @@ public: // Register a valid signal handler // so process doesn't die upon receiving signal - if (ACE_OS::signal (SIGUSR1, &::handle_signal) == SIG_ERR) { - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("(%P|%t) Failed in registering signal handler.\n")) - , -1); - } + ACE_Sig_Action sa ((ACE_SignalHandler) &::handle_signal, SIGUSR1); + ACE_UNUSED_ARG (sa); if (simulate_perform_work () == -1) { ACE_ERROR_RETURN ((LM_ERROR, |