From 769d6c4a75b92991b0f5fa76586854f106346c88 Mon Sep 17 00:00:00 2001 From: JoeWrightss Date: Sun, 9 Dec 2018 23:52:54 +0800 Subject: [PATCH] Fix some typos Signed-off-by: JoeWrightss --- libcontainer/cgroups/utils.go | 2 +- libcontainer/intelrdt/intelrdt.go | 2 +- man/runc-pause.8.md | 2 +- man/runc-resume.8.md | 2 +- pause.go | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libcontainer/cgroups/utils.go b/libcontainer/cgroups/utils.go index 316d963d620..ea571ad937f 100644 --- a/libcontainer/cgroups/utils.go +++ b/libcontainer/cgroups/utils.go @@ -463,7 +463,7 @@ func WriteCgroupProc(dir string, pid int) error { return fmt.Errorf("no such directory for %s", CgroupProcesses) } - // Dont attach any pid to the cgroup if -1 is specified as a pid + // Don't attach any pid to the cgroup if -1 is specified as a pid if pid != -1 { if err := ioutil.WriteFile(filepath.Join(dir, CgroupProcesses), []byte(strconv.Itoa(pid)), 0700); err != nil { return fmt.Errorf("failed to write %v to %v: %v", pid, CgroupProcesses, err) diff --git a/libcontainer/intelrdt/intelrdt.go b/libcontainer/intelrdt/intelrdt.go index cc17e79f075..9be62646628 100644 --- a/libcontainer/intelrdt/intelrdt.go +++ b/libcontainer/intelrdt/intelrdt.go @@ -486,7 +486,7 @@ func WriteIntelRdtTasks(dir string, pid int) error { return fmt.Errorf("no such directory for %s", IntelRdtTasks) } - // Dont attach any pid if -1 is specified as a pid + // Don't attach any pid if -1 is specified as a pid if pid != -1 { if err := ioutil.WriteFile(filepath.Join(dir, IntelRdtTasks), []byte(strconv.Itoa(pid)), 0700); err != nil { return fmt.Errorf("failed to write %v to %v: %v", pid, IntelRdtTasks, err) diff --git a/man/runc-pause.8.md b/man/runc-pause.8.md index 4a4265e86e1..ccd2a2fc2be 100644 --- a/man/runc-pause.8.md +++ b/man/runc-pause.8.md @@ -9,4 +9,4 @@ paused. # DESCRIPTION The pause command suspends all processes in the instance of the container. -Use runc list to identiy instances of containers and their current status. +Use runc list to identify instances of containers and their current status. diff --git a/man/runc-resume.8.md b/man/runc-resume.8.md index 627885f1412..75f4923881a 100644 --- a/man/runc-resume.8.md +++ b/man/runc-resume.8.md @@ -9,4 +9,4 @@ resumed. # DESCRIPTION The resume command resumes all processes in the instance of the container. -Use runc list to identiy instances of containers and their current status. +Use runc list to identify instances of containers and their current status. diff --git a/pause.go b/pause.go index 1db3ed152df..224c79f3368 100644 --- a/pause.go +++ b/pause.go @@ -16,7 +16,7 @@ Where "" is the name for the instance of the container to be paused. `, Description: `The pause command suspends all processes in the instance of the container. -Use runc list to identiy instances of containers and their current status.`, +Use runc list to identify instances of containers and their current status.`, Action: func(context *cli.Context) error { if err := checkArgs(context, 1, exactArgs); err != nil { return err @@ -45,7 +45,7 @@ Where "" is the name for the instance of the container to be resumed.`, Description: `The resume command resumes all processes in the instance of the container. -Use runc list to identiy instances of containers and their current status.`, +Use runc list to identify instances of containers and their current status.`, Action: func(context *cli.Context) error { if err := checkArgs(context, 1, exactArgs); err != nil { return err