aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-12 01:14:03 +0900
committerOphestra <cat@gensokyo.uk>2026-03-12 01:14:03 +0900
commit196b200d0f19c41730db439c62db9b39e424f21f (patch)
tree0723b900cea0816b6501f3933f768fb75453dd49 /internal/outcome
parent04e6bc3c5c99d6a99f17cfa5f69f34fe8941aee2 (diff)
container: expose priority and SCHED_OTHER policy
The more explicit API removes the arbitrary limit preventing use of SCHED_OTHER (referred to as SCHED_NORMAL in the kernel). This change also exposes priority value to set. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome')
-rw-r--r--internal/outcome/shim.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/outcome/shim.go b/internal/outcome/shim.go
index 53b37310..6d3e8d8b 100644
--- a/internal/outcome/shim.go
+++ b/internal/outcome/shim.go
@@ -274,6 +274,7 @@ func shimEntrypoint(k syscallDispatcher) {
cancelContainer.Store(&stop)
sp := shimPrivate{k: k, id: state.id}
z := container.New(ctx, msg)
+ z.SetScheduler = state.Shim.SchedPolicy > 0
z.SchedPolicy = state.Shim.SchedPolicy
z.Params = *stateParams.params
z.Stdin, z.Stdout, z.Stderr = os.Stdin, os.Stdout, os.Stderr