Browse code

Fix typo:betweem->between and PtySlace->PtySlave

Signed-off-by: Arika Chen <eaglesora@gmail.com>

ArikaChen authored on 2014/09/29 00:01:35
Showing 3 changed files
... ...
@@ -114,7 +114,7 @@ func (daemon *Daemon) ContainerAttach(job *engine.Job) engine.Status {
114 114
 
115 115
 // FIXME: this should be private, and every outside subsystem
116 116
 // should go through the "container_attach" job. But that would require
117
-// that job to be properly documented, as well as the relationship betweem
117
+// that job to be properly documented, as well as the relationship between
118 118
 // Attach and ContainerAttach.
119 119
 //
120 120
 // This method is in use by builder/builder.go.
... ...
@@ -243,7 +243,7 @@ func (container *Container) Exec(execConfig *execConfig) error {
243 243
 	callback := func(processConfig *execdriver.ProcessConfig, pid int) {
244 244
 		if processConfig.Tty {
245 245
 			// The callback is called after the process Start()
246
-			// so we are in the parent process. In TTY mode, stdin/out/err is the PtySlace
246
+			// so we are in the parent process. In TTY mode, stdin/out/err is the PtySlave
247 247
 			// which we close here.
248 248
 			if c, ok := processConfig.Stdout.(io.Closer); ok {
249 249
 				c.Close()
... ...
@@ -236,7 +236,7 @@ func (m *containerMonitor) shouldRestart(exitStatus int) bool {
236 236
 func (m *containerMonitor) callback(processConfig *execdriver.ProcessConfig, pid int) {
237 237
 	if processConfig.Tty {
238 238
 		// The callback is called after the process Start()
239
-		// so we are in the parent process. In TTY mode, stdin/out/err is the PtySlace
239
+		// so we are in the parent process. In TTY mode, stdin/out/err is the PtySlave
240 240
 		// which we close here.
241 241
 		if c, ok := processConfig.Stdout.(io.Closer); ok {
242 242
 			c.Close()