diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-12-03 19:30:33 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-12-03 19:30:33 +0000 |
commit | b339755912d770d38c834d07fb4cf957cf8224c5 (patch) | |
tree | 8b5ff243452005025954e8f9b71bba3101705d6f /TAO/performance-tests/RTCorba | |
parent | 2f5aad3b722d315111d6f1e6c07aa2f082e78232 (diff) | |
download | ATCD-b339755912d770d38c834d07fb4cf957cf8224c5.tar.gz |
Changes to avert build warning on IRIX.
Diffstat (limited to 'TAO/performance-tests/RTCorba')
-rw-r--r-- | TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp b/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp index 034a39b1a76..4084565b94d 100644 --- a/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp +++ b/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp @@ -18,9 +18,12 @@ main (int argc, char *argv[]) + ACE_Sched_Params::priority_max (policy)) / 2; // Enable FIFO scheduling, e.g., RT scheduling class on Solaris. - if (ACE_OS::sched_params (ACE_Sched_Params (policy, - priority, - ACE_SCOPE_PROCESS)) != 0) + int result = + ACE_OS::sched_params (ACE_Sched_Params (policy, + priority, + ACE_SCOPE_PROCESS)); + + if (result != 0) { if (ACE_OS::last_error () == EPERM) { @@ -31,8 +34,9 @@ main (int argc, char *argv[]) flags = THR_NEW_LWP|THR_JOINABLE; } else - ACE_ERROR ((LM_ERROR, - "server (%P|%t): sched_params failed\n")); + ACE_ERROR_RETURN ((LM_ERROR, + "server (%P|%t): sched_params failed\n"), + 1); } ACE_hthread_t self; |