diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-06 18:59:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-06 18:59:44 +0000 |
commit | 60c30bd7b1380d28b27dd7e2180ae0b19e33008a (patch) | |
tree | 6c6c5e441850508af4382301a031f8d2b07c0077 /src/util | |
parent | 971d81de43b2b5e5c20baebfe95665d6a8b4fb9f (diff) | |
download | gnunet-60c30bd7b1380d28b27dd7e2180ae0b19e33008a.tar.gz gnunet-60c30bd7b1380d28b27dd7e2180ae0b19e33008a.zip |
-setpriority is priviledged, so save on those useless syscalls
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/scheduler.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 6231a1987..d72fc7fd2 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -565,12 +565,7 @@ run_ready (struct GNUNET_NETWORK_FDSet *rs, struct GNUNET_NETWORK_FDSet *ws) | |||
565 | GNUNET_assert (pos != NULL); /* ready_count wrong? */ | 565 | GNUNET_assert (pos != NULL); /* ready_count wrong? */ |
566 | ready[p] = pos->next; | 566 | ready[p] = pos->next; |
567 | ready_count--; | 567 | ready_count--; |
568 | if (current_priority != pos->priority) | 568 | current_priority = pos->priority; |
569 | { | ||
570 | current_priority = pos->priority; | ||
571 | (void) GNUNET_OS_set_process_priority (GNUNET_OS_process_current (), | ||
572 | pos->priority); | ||
573 | } | ||
574 | current_lifeness = pos->lifeness; | 569 | current_lifeness = pos->lifeness; |
575 | active_task = pos; | 570 | active_task = pos; |
576 | #if PROFILE_DELAYS | 571 | #if PROFILE_DELAYS |