1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

beam/examples/beamsh: 'exec' command correctly closes stdout and stderr when the process exists

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-26 15:47:36 -07:00
parent e512fef425
commit 5ddf673851

View file

@ -214,6 +214,8 @@ func GetHandler(name string) Handler {
status = "ok"
}
beam.Send(out, data.Empty().Set("status", status).Set("cmd", args...).Bytes(), nil)
outW.Close()
errW.Close()
}
} else if name == "trace" {
return func(args []string, in *net.UnixConn, out *net.UnixConn) {