Messages in this thread Patch in this message | | | From | Dongsheng Yang <> | Subject | [PATCH 06/17] tools/mq_perf_tests: Replace hardcoding of -20 with MIN_NICE. | Date | Tue, 11 Mar 2014 18:09:14 +0800 |
| |
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> --- tools/testing/selftests/mqueue/mq_perf_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c index 2fadd4b..09dce51 100644 --- a/tools/testing/selftests/mqueue/mq_perf_tests.c +++ b/tools/testing/selftests/mqueue/mq_perf_tests.c @@ -527,9 +527,9 @@ void increase_limits(void) while (try_set(max_msgsize, cur_max_msgsize += 1024)) ; cur_max_msgsize = get(max_msgsize); - if (setpriority(PRIO_PROCESS, 0, -20) != 0) + if (setpriority(PRIO_PROCESS, 0, MIN_NICE) != 0) shutdown(2, "setpriority()", __LINE__); - cur_nice = -20; + cur_nice = MIN_NICE; } int main(int argc, char *argv[]) -- 1.8.2.1
| |