-setpriority is priviledged, so save on those useless syscalls
authorChristian Grothoff <christian@grothoff.org>
Sat, 6 Oct 2012 18:59:44 +0000 (18:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 6 Oct 2012 18:59:44 +0000 (18:59 +0000)
src/util/scheduler.c

index 6231a198753efe280b689c330c6e91797a0d15f3..d72fc7fd251906c1c171829da647de87da5536b8 100644 (file)
@@ -565,12 +565,7 @@ run_ready (struct GNUNET_NETWORK_FDSet *rs, struct GNUNET_NETWORK_FDSet *ws)
     GNUNET_assert (pos != NULL);        /* ready_count wrong? */
     ready[p] = pos->next;
     ready_count--;
-    if (current_priority != pos->priority)
-    {
-      current_priority = pos->priority;
-      (void) GNUNET_OS_set_process_priority (GNUNET_OS_process_current (),
-                                             pos->priority);
-    }
+    current_priority = pos->priority;
     current_lifeness = pos->lifeness;
     active_task = pos;
 #if PROFILE_DELAYS