changeset 3792:67149b51a115

. Make set_native_priority return a (correct) value on FreeBSD, rather than whatever happens to be on the stack. Submitted by: Xiaoguang Sun <sunxiaoguang@gmail.com>
author Greg Lewis <glewis@eyesbeyond.com>
date Sun, 01 Dec 2013 08:35:56 -0800
parents 13c651d7ee63
children a112c390f56c
files src/os/bsd/vm/os_bsd.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/os_bsd.cpp	Sun Apr 28 16:29:19 2013 -0700
+++ b/src/os/bsd/vm/os_bsd.cpp	Sun Dec 01 08:35:56 2013 -0800
@@ -3670,6 +3670,7 @@
   return OS_OK;
 #elif defined(__FreeBSD__)
   int ret = pthread_setprio(thread->osthread()->pthread_id(), newpri);
+  return (ret == 0) ? OS_OK : OS_ERR;
 #elif defined(__APPLE__) || defined(__NetBSD__)
   struct sched_param sp;
   int policy;