diff --git a/src/ldapcontroller.cpp b/src/ldapcontroller.cpp index 2ec4260..6c2fed6 100644 --- a/src/ldapcontroller.cpp +++ b/src/ldapcontroller.cpp @@ -916,6 +916,14 @@ TQString readFullLineFromPtyProcess(PtyProcess* proc) { ) { result = result + TQString(proc->readLine(false)); tqApp->processEvents(); + if (!TQFile::exists(TQString("/proc/%1/exe").arg(proc->pid()))) { + result.replace("\n", ""); + result.replace("\r", ""); + if (result == "") { + result = "TDE process terminated"; + } + break; + } } result.replace("\n", ""); result.replace("\r", "");