summaryrefslogtreecommitdiffstats
path: root/src/bin/lfc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2020-07-10 22:04:08 +0200
committerFrancis Dupont <fdupont@isc.org>2020-07-13 15:47:52 +0200
commit6c4281915aa9b49460071d1fd3fe55e2771d34a3 (patch)
tree9671502b2f92388edfc10b9e06eb7fb37630b303 /src/bin/lfc
parent[#1182] Regen bison (diff)
downloadkea-6c4281915aa9b49460071d1fd3fe55e2771d34a3.tar.xz
kea-6c4281915aa9b49460071d1fd3fe55e2771d34a3.zip
[#1311] Reniced LFC
Diffstat (limited to 'src/bin/lfc')
-rw-r--r--src/bin/lfc/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/lfc/main.cc b/src/bin/lfc/main.cc
index 30a423b09e..2e67e9b3b7 100644
--- a/src/bin/lfc/main.cc
+++ b/src/bin/lfc/main.cc
@@ -12,6 +12,7 @@
#include <boost/exception/diagnostic_information.hpp>
#include <boost/exception_ptr.hpp>
#include <iostream>
+#include <sys/resource.h>
using namespace std;
using namespace isc::lfc;
@@ -23,6 +24,9 @@ using namespace isc::lfc;
/// The exit value of the program will be EXIT_SUCCESS if there were no
/// errors, EXIT_FAILURE otherwise.
int main(int argc, char* argv[]) {
+ // Ask scheduling to not give too much resources to LFC.
+ static_cast<void>(setpriority(PRIO_PROCESS, 0, 4));
+
int ret = EXIT_SUCCESS;
LFCController lfc_controller;