Refactoring minor fix

Signed-off-by: Harry Zhang <harryz@hyper.sh>
This commit is contained in:
Harry Zhang 2016-06-30 11:13:06 -04:00
parent a8c73b6959
commit 96ee432674
3 changed files with 3 additions and 3 deletions

View file

@ -358,7 +358,7 @@ func (p *process) initializeIO(rootuid int) (i *IO, err error) {
}
fds = append(fds, r.Fd(), w.Fd())
p.stdio.stderr, i.Stderr = w, r
// change ownership of the pipes incase we are in a user namespace
// change ownership of the pipes in case we are in a user namespace
for _, fd := range fds {
if err := syscall.Fchown(int(fd), rootuid, rootuid); err != nil {
return nil, err