server doesn't support input redirection
I'm trying to redirect stdin to read from a file to ease the testing of server mode but the server exits immediately.
After some debugging it seems that libuv reports an UV_EINVAL
error on the first read attempt.
It may be possible that this is related to the fact that only stout is checked on cmServerStdIoConnection::DoSetup
if (uv_guess_handle(1) == UV_TTY) {
and indeed if I test uv_guess_handle(1)
it returns UV_FILE
.
I tried to fix it to test 0 as well but then it reads nothing and just hangs.
Tested on Windows 10, CMake 3.8.0