summaryrefslogtreecommitdiff
path: root/storage/pbxt
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-05-26 18:07:06 +0300
committerMichael Widenius <monty@askmonty.org>2011-05-26 18:07:06 +0300
commitfb7ee69128efb829dc1c795359573cabf1710ebc (patch)
treecb065cddecdbde4fd92de331c564b20bfe07e3a5 /storage/pbxt
parentdecb9c639ae4db36650996112c9d1200eb5d575d (diff)
parentccdecaea5931e548e25c4c874a90017c98c474c3 (diff)
downloadmariadb-git-fb7ee69128efb829dc1c795359573cabf1710ebc.tar.gz
Merge with 5.1 to get in fix wrong setpriority() call
Diffstat (limited to 'storage/pbxt')
-rwxr-xr-xstorage/pbxt/src/pthread_xt.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/pbxt/src/pthread_xt.cc b/storage/pbxt/src/pthread_xt.cc
index e7f0632e9ae..c5dc2e41fdd 100755
--- a/storage/pbxt/src/pthread_xt.cc
+++ b/storage/pbxt/src/pthread_xt.cc
@@ -558,8 +558,10 @@ xtPublic int xt_p_set_low_priority(pthread_t thr)
*/
/* -20 = highest, 20 = lowest */
+#ifdef SET_GLOBAL_PRIORITY
if (setpriority(PRIO_PROCESS, getpid(), 20) == -1)
return errno;
+#endif
return 0;
}
return pth_set_priority(thr, pth_min_priority);