From: Noah Hilverling Date: Mon, 23 Oct 2017 09:01:16 +0000 (+0200) Subject: Process: Remove log message from child process X-Git-Tag: v2.8.0~30^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7930ae50940f4021eb0c30f41cc23c30c78bdc1a;p=icinga2 Process: Remove log message from child process --- diff --git a/lib/base/process.cpp b/lib/base/process.cpp index 1aeeb7e1d..9f587bc12 100644 --- a/lib/base/process.cpp +++ b/lib/base/process.cpp @@ -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;