diff options
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; |