Beam: change the prototype of SendPipe() to return a *net.UnixSocket

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-18 17:06:31 -07:00
parent 0a187f629a
commit 95b759ad16
2 changed files with 14 additions and 9 deletions

View file

@ -17,11 +17,7 @@ import (
// not point to a connection, that message will be skipped.
//
func Listen(conn *net.UnixConn, name string) (net.Listener, error) {
fEndpoint, err := SendPipe(conn, []byte(name))
if err != nil {
return nil, err
}
endpoint, err := FdConn(int(fEndpoint.Fd()))
endpoint, err := SendPipe(conn, []byte(name))
if err != nil {
return nil, err
}