MCPcopy
hub / github.com/pyload/pyload / renice

Function renice

module/plugins/internal/misc.py:922–932  ·  view source on GitHub ↗
(pid, value)

Source from the content-addressed store, hash-verified

920
921
922def renice(pid, value):
923 if not value or os.name == "nt":
924 return
925
926 try:
927 Popen(["renice", str(value), str(pid)],
928 stdout=subprocess.PIPE,
929 stderr=subprocess.PIPE,
930 bufsize=-1)
931 except Exception:
932 pass
933
934
935def forward(source, destination):

Callers 3

call_cmdMethod · 0.85
call_cmdMethod · 0.85
runMethod · 0.85

Calls 1

PopenClass · 0.85

Tested by

no test coverage detected