Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Aug 27, 2024
1 parent 47c3278 commit d72d1c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/action_kit_commons/memfill/memfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ func (o Opts) processArgs() []string {
return args
}

func New(targeProcess runc.LinuxProcessInfo, opts Opts) (*MemFill, error) {
func New(targetProcess runc.LinuxProcessInfo, opts Opts) (*MemFill, error) {
args := append([]string{
"nsenter", "-t", "1", "-C", "--",
//when util-linux package >= 2.39 is broadly available we could also the cgroup change using nsenter,
"cgexec", "-g", fmt.Sprintf("memory:%s", targeProcess.CGroupPath),
"nsenter", "-t", strconv.Itoa(targeProcess.Pid), "-p", "-F", "--",
"cgexec", "-g", fmt.Sprintf("memory:%s", targetProcess.CGroupPath),
"nsenter", "-t", strconv.Itoa(targetProcess.Pid), "-p", "-F", "--",
},
opts.processArgs()...,
)
Expand Down

0 comments on commit d72d1c0

Please sign in to comment.