summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-08 21:38:01 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-08 21:38:01 +0200
commit87faf71dafab1b94f9f648b78e11e71310e45c63 (patch)
tree6a65835efb5c189248a7fdb844d2271032ffdd0c /module
parentunrar renice (diff)
downloadpyload-87faf71dafab1b94f9f648b78e11e71310e45c63.tar.xz
busybox renice
Diffstat (limited to 'module')
-rw-r--r--module/pyunrar.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/pyunrar.py b/module/pyunrar.py
index 14379ffcb..3ba689dad 100644
--- a/module/pyunrar.py
+++ b/module/pyunrar.py
@@ -110,7 +110,10 @@ class Unrar():
try:
Popen(["renice", self.cpu, p.pid], stdout=PIPE, bufsize=-1)
except:
- print "Renice failed"
+ try:
+ Popen(["busybox", "renice", self.cpu, p.pid], stdout=PIPE, bufsize=-1)
+ except:
+ print "Renice failed"
def listContent(self, password=None):
"""