(pid, value)
| 920 | |
| 921 | |
| 922 | def 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 | |
| 935 | def forward(source, destination): |