diff --git a/libcontainer/cgroups/utils.go b/libcontainer/cgroups/utils.go index 965c607c682..ff2cfa42989 100644 --- a/libcontainer/cgroups/utils.go +++ b/libcontainer/cgroups/utils.go @@ -377,7 +377,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 { return nil } diff --git a/libcontainer/init_linux.go b/libcontainer/init_linux.go index edb112f64bd..0abbccf569f 100644 --- a/libcontainer/init_linux.go +++ b/libcontainer/init_linux.go @@ -108,7 +108,7 @@ func Init() { // error, it means the initialization has failed. If the error is returned, // it means the error can not be communicated back to the parent. func startInitialization() (retErr error) { - // Get the syncrhonisation pipe. + // Get the synchronisation pipe. envSyncPipe := os.Getenv("_LIBCONTAINER_SYNCPIPE") syncPipeFd, err := strconv.Atoi(envSyncPipe) if err != nil {