execute_process buffers resulting in user doesn't see question when subprocess is taking in input.
using execute_process my script eventually asks for password sometimes via ssh calls, but because of the buffering I only see password input only once. On Windows the buffering is even more annoying as sometimes it's asking for password but the message with regards to why is buffered by cmake and is only outputed after the buffer has been filled enough.
I have layers of scripts and after investigating my issue I'm confident that the buffering issue is in CMakes execute_process implementation. But I have no direct evidence.
cmake version 3.15.5. This issue has been existing on many cmake versions. I haven't tested with the latest 3.16 but I think it will still be there as I haven't seen any discussion or notes regarding this.
Let me know how your team want to proceed with this issue.
Thank you.