From c4106ae0d926862ba3720ed7d53c8831aed4da7c Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 2 Mar 2011 17:26:35 +0100 Subject: [PATCH] indexing: use PRIO_PROCESS not PRIO_PGRP for setting recollindex nice value --- src/index/recollindex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index/recollindex.cpp b/src/index/recollindex.cpp index 7236e08c..c661a621 100644 --- a/src/index/recollindex.cpp +++ b/src/index/recollindex.cpp @@ -276,7 +276,7 @@ int main(int argc, const char **argv) bool rezero(op_flags & OPT_z); Pidfile pidfile(config->getPidfile()); - if (setpriority(PRIO_PGRP, 0, 20) != 0) { + if (setpriority(PRIO_PROCESS, 0, 20) != 0) { LOGINFO(("recollindex: can't setpriority(), errno %d\n", errno)); } @@ -333,7 +333,7 @@ int main(int argc, const char **argv) } // Not too sure if I have to redo the nice thing after daemon(), // can't hurt anyway (easier than testing on all platforms...) - if (setpriority(PRIO_PGRP, 0, 20) != 0) { + if (setpriority(PRIO_PROCESS, 0, 20) != 0) { LOGINFO(("recollindex: can't setpriority(), errno %d\n", errno)); } pidfile.write_pid();