aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/container.go
diff options
context:
space:
mode:
Diffstat (limited to 'container/container.go')
-rw-r--r--container/container.go7
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",