From 937cb8d13055b13da6e267989404ac529b0633d6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 12 Dec 2012 00:41:44 -0600 Subject: Fix up kadmin interface --- src/ldapcontroller.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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", ""); -- cgit v1.2.1