From edf3004ec3bd7bf7d2d1c3074281ce22188f3e35 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 22 Apr 2013 21:41:57 -0500 Subject: Fix secondary thread termination This resolves the remainder of Bug 1467 --- tdm/kfrontend/kgreeter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tdm') diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp index 2111a1e9d..9bcf60eb5 100644 --- a/tdm/kfrontend/kgreeter.cpp +++ b/tdm/kfrontend/kgreeter.cpp @@ -1259,6 +1259,7 @@ void ControlPipeHandlerObject::run(void) { while (1) { if ((mKGreeterParent && (mKGreeterParent->closingDown)) || (mSAKDlgParent && (mSAKDlgParent->closingDown))) { ::unlink(mPipeFilename.ascii()); + TQApplication::eventLoop()->exit(-1); return; } @@ -1297,6 +1298,7 @@ void ControlPipeHandlerObject::run(void) { if ((file_mode != 600) || (buffer.st_uid != 0) || (buffer.st_gid != 0)) { ::unlink(mPipeFilename.ascii()); printf("[WARNING] Possible security breach! Please check permissions on " FIFO_DIR " (must be 600 and owned by root/root, got %d %d/%d). Not listening for login credentials on remote control socket.\n", file_mode, buffer.st_uid, buffer.st_gid); fflush(stdout); + TQApplication::eventLoop()->exit(-1); return; } } @@ -1327,6 +1329,7 @@ void ControlPipeHandlerObject::run(void) { } if ((mKGreeterParent && (mKGreeterParent->closingDown)) || (mSAKDlgParent && (mSAKDlgParent->closingDown))) { ::unlink(mPipeFilename.ascii()); + TQApplication::eventLoop()->exit(-1); return; } @@ -1338,10 +1341,12 @@ void ControlPipeHandlerObject::run(void) { } else { ::unlink(mPipeFilename.ascii()); + TQApplication::eventLoop()->exit(-1); return; } } } + TQApplication::eventLoop()->exit(-1); } #include "kgreeter.moc" -- cgit v1.2.1