Fix some typos
Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
This commit is contained in:
parent
859f74576e
commit
769d6c4a75
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
4
pause.go
4
pause.go
|
@ -16,7 +16,7 @@ Where "<container-id>" 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 "<container-id>" 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
|
||||
|
|
Loading…
Reference in New Issue