From bd7d1eb7b68468167df73c4cca017bcc1789ed1a Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Thu, 26 Jun 2014 14:08:49 -0700 Subject: [PATCH] Fix parent type in sync pipe Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- namespaces/sync_pipe.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/namespaces/sync_pipe.go b/namespaces/sync_pipe.go index dd947c8e..f2e34941 100644 --- a/namespaces/sync_pipe.go +++ b/namespaces/sync_pipe.go @@ -17,11 +17,11 @@ type SyncPipe struct { parent, child *os.File } -func NewSyncPipeFromFd(parendFd, childFd uintptr) (*SyncPipe, error) { +func NewSyncPipeFromFd(parentFd, childFd uintptr) (*SyncPipe, error) { s := &SyncPipe{} - if parendFd > 0 { - s.parent = os.NewFile(parendFd, "parendPipe") + if parentFd > 0 { + s.parent = os.NewFile(parentFd, "parentPipe") } else if childFd > 0 { s.child = os.NewFile(childFd, "childPipe") } else {