summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-24 20:19:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-24 20:19:33 +0200
commit3c18da42cdc72060714f51f17aaab08de9934d06 (patch)
tree037ae5e4e9764db09d8ce516ca95a4e67040747c /pyLoadCore.py
parentdaemon mode (diff)
downloadpyload-3c18da42cdc72060714f51f17aaab08de9934d06.tar.xz
process renice
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index dadb85436..82900e58a 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -194,6 +194,9 @@ class Core(object):
self.debug = self.doDebug or self.config['general']['debug_mode']
+ if os.name != "nt" and self.config["general"]["renice"]:
+ os.system("renice %d %d" % (self.config["general"]["renice"], os.getpid()) )
+
if self.config["permission"]["change_group"]:
if os.name != "nt":