From f49734592c68e8c3de913ff015680244ffe009e8 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Wed, 26 Mar 2014 15:47:36 -0700 Subject: [PATCH] beam/examples/beamsh: 'exec' command correctly closes stdout and stderr when the process exists Docker-DCO-1.1-Signed-off-by: Solomon Hykes (github: shykes) --- beam/examples/beamsh/beamsh.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beam/examples/beamsh/beamsh.go b/beam/examples/beamsh/beamsh.go index 5e341b6..83c0de5 100644 --- a/beam/examples/beamsh/beamsh.go +++ b/beam/examples/beamsh/beamsh.go @@ -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) {