gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2771 - GNUnet/src/util


From: grothoff
Subject: [GNUnet-SVN] r2771 - GNUnet/src/util
Date: Sun, 7 May 2006 18:12:12 -0700 (PDT)

Author: grothoff
Date: 2006-05-07 18:12:10 -0700 (Sun, 07 May 2006)
New Revision: 2771

Modified:
   GNUnet/src/util/initialize.c
Log:
a bit more reasonable priorities

Modified: GNUnet/src/util/initialize.c
===================================================================
--- GNUnet/src/util/initialize.c        2006-05-07 21:30:09 UTC (rev 2770)
+++ GNUnet/src/util/initialize.c        2006-05-08 01:12:10 UTC (rev 2771)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2001, 2002, 2005 Christian Grothoff (and other contributing authors)
+     (C) 2001, 2002, 2005, 2006 Christian Grothoff (and other contributing 
authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -121,7 +121,7 @@
 #ifdef MINGW
       prio = ABOVE_NORMAL_PRIORITY_CLASS;
 #else
-    prio = -10;
+    prio = -5;
 #endif
     else if (strcmp(str, "BELOW NORMAL") == 0)
 #ifdef MINGW
@@ -133,7 +133,7 @@
 #ifdef MINGW
       prio = HIGH_PRIORITY_CLASS;
 #else
-    prio = -20;
+    prio = -10;
 #endif
     else if (strcmp(str, "IDLE") == 0)
 #ifdef MINGW
@@ -163,7 +163,10 @@
 #ifdef MINGW
     SetPriorityClass(GetCurrentProcess(), prio);
 #else
+    errno = 0;
     nice(prio);
+    if (errno != 0)
+      LOG_STRERROR(LOG_WARNING, "nice");
 #endif
     FREE(str);
   }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]