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:
parent
7e73a97a41
commit
f49734592c
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue