During a docker exec, if no TTY is specified, the code would still leave stdin open instead of closing it. This change adds handling for the execConfig TTY bool that mirrors what is already done for container config. (Updated this change to be Windows only.) Signed-off-by: Stefan J. Wernli <swernli@microsoft.com> Upstream-commit: 176345435b33ecbb725cac995083fab0462f60e3 Component: engine