diff options
author | Michael Widenius <monty@askmonty.org> | 2011-05-26 18:07:06 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-05-26 18:07:06 +0300 |
commit | fb7ee69128efb829dc1c795359573cabf1710ebc (patch) | |
tree | cb065cddecdbde4fd92de331c564b20bfe07e3a5 /storage/pbxt | |
parent | decb9c639ae4db36650996112c9d1200eb5d575d (diff) | |
parent | ccdecaea5931e548e25c4c874a90017c98c474c3 (diff) | |
download | mariadb-git-fb7ee69128efb829dc1c795359573cabf1710ebc.tar.gz |
Merge with 5.1 to get in fix wrong setpriority() call
Diffstat (limited to 'storage/pbxt')
-rwxr-xr-x | storage/pbxt/src/pthread_xt.cc | 2 |
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); |