diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 13:35:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 13:39:26 +0900 |
| commit | cd5959fe5ab04786cd5dee3cf09f725229ae7c7b (patch) | |
| tree | c0dae3f950528e7c3b6d7359441ee8aeb9a488cd /container/container.go | |
| parent | 08c35ca24fabc41268411cec14ea386a6d87ece9 (diff) | |
ext: isolate from container/std
These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container.go')
| -rw-r--r-- | container/container.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/container/container.go b/container/container.go index ad86fb03..7d8837a3 100644 --- a/container/container.go +++ b/container/container.go @@ -20,6 +20,7 @@ import ( "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" + "hakurei.app/ext" "hakurei.app/message" ) @@ -41,10 +42,10 @@ type ( // Whether to set SchedPolicy and SchedPriority via sched_setscheduler(2). SetScheduler bool // Scheduling policy to set via sched_setscheduler(2). - SchedPolicy std.SchedPolicy + SchedPolicy ext.SchedPolicy // Scheduling priority to set via sched_setscheduler(2). The zero value // implies the minimum value supported by the current SchedPolicy. - SchedPriority std.Int + SchedPriority ext.Int // Cgroup fd, nil to disable. Cgroup *int // ExtraFiles passed through to initial process in the container, with @@ -378,7 +379,7 @@ func (p *Container) Start() error { // sched_setscheduler: thread-directed but acts on all processes // created from the calling thread if p.SetScheduler { - if p.SchedPolicy < 0 || p.SchedPolicy > std.SCHED_LAST { + if p.SchedPolicy < 0 || p.SchedPolicy > ext.SCHED_LAST { return &StartError{ Fatal: false, Step: "set scheduling policy", |
