]> err.no Git - systemd/commitdiff
load-fragment: properly parse Nice= value
authorAdrian Spinu <adrian.spinu@windriver.com>
Wed, 2 Feb 2011 13:57:52 +0000 (15:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Feb 2011 20:23:32 +0000 (21:23 +0100)
Hello,

     i`ve been using systemd for a while now, and found out that when
using NICE parameter for .service files the varible is not set correctly.
     i`ve found the problem in file *load-fragment.c* function
*config_parse_nice*        variable /*c->nice_set = false;*/  should be
/*c->nice_set = true;*/
     Problem is alsom manifesting on v17 but did not upgrade yet ...

src/load-fragment.c

index acceb9b51f3e6803d005058f36a086d96d56f710..fc64ddd5a0f0b5bc49c2d0a4ec959c076fc64adb 100644 (file)
@@ -306,7 +306,7 @@ static int config_parse_nice(
         }
 
         c->nice = priority;
-        c->nice_set = false;
+        c->nice_set = true;
 
         return 0;
 }