]> granicus.if.org Git - icinga2/commitdiff
Process: Remove log message from child process
authorNoah Hilverling <noah.hilverling@icinga.com>
Mon, 23 Oct 2017 09:01:16 +0000 (11:01 +0200)
committerNoah Hilverling <noah.hilverling@icinga.com>
Mon, 23 Oct 2017 09:01:16 +0000 (11:01 +0200)
lib/base/process.cpp

index 1aeeb7e1dac096259f7fc38553624d16622c0d74..9f587bc129fbbd9399208d2eaecb59c1a1423d6e 100644 (file)
@@ -164,8 +164,8 @@ static Value ProcessSpawnImpl(struct msghdr *msgh, const Dictionary::Ptr& reques
                (void)close(fds[2]);
 
 #ifdef HAVE_NICE
-               if (adjustPriority && nice(5) < 0)
-                       Log(LogWarning, "base", "Failed to renice child process.");
+               if (adjustPriority)
+                       nice(5);
 #endif /* HAVE_NICE */
 
                sigset_t mask;