From bf6c8af928433db9fd5ba4fa4a14e543daa9125b Mon Sep 17 00:00:00 2001 From: nixpig <143995476+nixpig@users.noreply.github.com> Date: Mon, 9 Dec 2024 05:19:47 +0000 Subject: [PATCH] chore: align rlimit --- container/container_init.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/container/container_init.go b/container/container_init.go index fce352d..d90fca1 100644 --- a/container/container_init.go +++ b/container/container_init.go @@ -10,7 +10,6 @@ import ( "syscall" "github.com/containerd/cgroups/v3/cgroup1" - "github.com/nixpig/brownie/container/cgroups" "github.com/nixpig/brownie/container/namespace" "github.com/nixpig/brownie/container/terminal" "github.com/nixpig/brownie/internal/ipc" @@ -168,12 +167,12 @@ func (c *Container) Init(reexec string, arg string, log *zerolog.Logger) error { reexecCmd.Env = append(reexecCmd.Env, c.Spec.Process.Env...) } - if c.Spec.Process != nil && c.Spec.Process.Rlimits != nil { - if err := cgroups.SetRlimits(c.Spec.Process.Rlimits); err != nil { - log.Error().Err(err).Msg("set rlimits") - return err - } - } + // if c.Spec.Process != nil && c.Spec.Process.Rlimits != nil { + // if err := cgroups.SetRlimits(c.Spec.Process.Rlimits); err != nil { + // log.Error().Err(err).Msg("set rlimits") + // return err + // } + // } reexecCmd.Stdin = c.Opts.Stdin reexecCmd.Stdout = c.Opts.Stdout