move some io related utils to pkg/ioutils

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
unclejack
2014-09-03 11:36:21 +03:00
parent 426fbee810
commit 76212635b5
12 changed files with 164 additions and 141 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import (
"sync"
"time"
"github.com/docker/docker/pkg/ioutils"
"github.com/docker/docker/utils"
)
@@ -123,7 +124,7 @@ func (eng *Engine) Job(name string, args ...string) *Job {
env: &Env{},
}
if eng.Logging {
job.Stderr.Add(utils.NopWriteCloser(eng.Stderr))
job.Stderr.Add(ioutils.NopWriteCloser(eng.Stderr))
}
// Catchall is shadowed by specific Register.