mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 00:33:36 +02:00
...
This commit is contained in:
parent
cf5387baa2
commit
893799249b
1 changed files with 1 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ def renice(niceness):
|
|||
pass
|
||||
niceness = {'normal' : 0, 'low' : 10, 'high' : 20}[priority]
|
||||
args['preexec_fn'] = partial(renice, niceness)
|
||||
args['close_fds'] = True
|
||||
|
||||
p = subprocess.Popen([w.executable, '--pipe-worker', command], **args)
|
||||
atexit.register(w.kill)
|
||||
|
|
|
|||
Loading…
Reference in a new issue