This patch fixes a regression caused by https://github.com/llvm/llvm-project/pull/168729. The changes ensure that we only create the process with a ConPTY if we need to.
This patch fixes a regression caused by https://github.com/llvm/llvm-project/pull/168729. The changes ensure that we only create the process with a ConPTY if we need to.