Skip to content

Commit

Permalink
Fix parent type in sync pipe
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
  • Loading branch information
Michael Crosby committed Jun 26, 2014
1 parent e098c02 commit bd7d1eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions namespaces/sync_pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bd7d1eb

Please sign in to comment.