diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-08 21:38:01 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-08 21:38:01 +0200 |
commit | 87faf71dafab1b94f9f648b78e11e71310e45c63 (patch) | |
tree | 6a65835efb5c189248a7fdb844d2271032ffdd0c | |
parent | unrar renice (diff) | |
download | pyload-87faf71dafab1b94f9f648b78e11e71310e45c63.tar.xz |
busybox renice
-rw-r--r-- | module/pyunrar.py | 5 |
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): """ |