From bfc9d8bbea2f41247fa543034bbbf64704ae3aae Mon Sep 17 00:00:00 2001 From: ArikaChen Date: Sun, 28 Sep 2014 08:01:35 -0700 Subject: [PATCH] Fix typo:betweem->between and PtySlace->PtySlave Signed-off-by: Arika Chen --- daemon/attach.go | 2 +- daemon/exec.go | 2 +- daemon/monitor.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/attach.go b/daemon/attach.go index 6ad1cbad48..1498c97547 100644 --- a/daemon/attach.go +++ b/daemon/attach.go @@ -114,7 +114,7 @@ func (daemon *Daemon) ContainerAttach(job *engine.Job) engine.Status { // FIXME: this should be private, and every outside subsystem // should go through the "container_attach" job. But that would require -// that job to be properly documented, as well as the relationship betweem +// that job to be properly documented, as well as the relationship between // Attach and ContainerAttach. // // This method is in use by builder/builder.go. diff --git a/daemon/exec.go b/daemon/exec.go index 6ce5b91ddc..998ed1c83a 100644 --- a/daemon/exec.go +++ b/daemon/exec.go @@ -243,7 +243,7 @@ func (container *Container) Exec(execConfig *execConfig) error { callback := func(processConfig *execdriver.ProcessConfig, pid int) { if processConfig.Tty { // The callback is called after the process Start() - // so we are in the parent process. In TTY mode, stdin/out/err is the PtySlace + // so we are in the parent process. In TTY mode, stdin/out/err is the PtySlave // which we close here. if c, ok := processConfig.Stdout.(io.Closer); ok { c.Close() diff --git a/daemon/monitor.go b/daemon/monitor.go index 67ec67e137..b5dd741012 100644 --- a/daemon/monitor.go +++ b/daemon/monitor.go @@ -236,7 +236,7 @@ func (m *containerMonitor) shouldRestart(exitStatus int) bool { func (m *containerMonitor) callback(processConfig *execdriver.ProcessConfig, pid int) { if processConfig.Tty { // The callback is called after the process Start() - // so we are in the parent process. In TTY mode, stdin/out/err is the PtySlace + // so we are in the parent process. In TTY mode, stdin/out/err is the PtySlave // which we close here. if c, ok := processConfig.Stdout.(io.Closer); ok { c.Close()