mirror of
https://github.com/moby/moby.git
synced 2026-08-04 23:21:00 +00:00
Fix a bug which caused the client to never exit in interactive mode when NORAW is set.
This commit is contained in:
@@ -185,9 +185,10 @@ func main() {
|
||||
if err := <-receive_stdout; err != nil {
|
||||
Fatal(err)
|
||||
}
|
||||
if IsTerminal(0) && os.Getenv("NORAW") == "" {
|
||||
if oldState != nil {
|
||||
Restore(0, oldState)
|
||||
} else {
|
||||
}
|
||||
if !IsTerminal(0) {
|
||||
if err := <-send_stdin; err != nil {
|
||||
Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user