diff options
Diffstat (limited to 'src/zencompute/runners/winerunner.cpp')
| -rw-r--r-- | src/zencompute/runners/winerunner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zencompute/runners/winerunner.cpp b/src/zencompute/runners/winerunner.cpp index b4fafb467..593b19e55 100644 --- a/src/zencompute/runners/winerunner.cpp +++ b/src/zencompute/runners/winerunner.cpp @@ -96,7 +96,9 @@ WineProcessRunner::SubmitAction(Ref<RunnerAction> Action) if (ChildPid == 0) { - // Child process + // Child process — lower priority so workers don't starve the main server + nice(5); + if (chdir(SandboxPathStr.c_str()) != 0) { _exit(127); |