summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-24 17:20:58 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-24 17:20:58 +0000
commit0995e7c6978707409a7b038557c7e342fa5a3701 (patch)
tree18f487059c931ffeae3b1c5ccbc24db721c64d4f
parent0b14665f481e8afb69762e51cd4c906ca727f58b (diff)
downloadtdebase-0995e7c6978707409a7b038557c7e342fa5a3701.tar.gz
tdebase-0995e7c6978707409a7b038557c7e342fa5a3701.zip
Get rid of the crash dialog upon login.
If the client crashes, then nspluginscan should just continue. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1107044 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--nsplugins/pluginscan.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/nsplugins/pluginscan.cpp b/nsplugins/pluginscan.cpp
index 9d76d1913..b7c0ad1ff 100644
--- a/nsplugins/pluginscan.cpp
+++ b/nsplugins/pluginscan.cpp
@@ -46,6 +46,7 @@
#include <kstandarddirs.h>
#include <klibloader.h>
#include <kconfig.h>
+#include <kcrash.h>
#include <kdesktopfile.h>
#include <kservicetype.h>
#include <kmimetype.h>
@@ -222,6 +223,11 @@ void registerPlugin( const QString &name, const QString &description,
infoConfig->writeEntry( "mime", mimeInfo );
}
+static void segv_handler(int)
+{
+ _exit(255);
+}
+
int tryCheck(int write_fd, const QString &absFile)
{
KLibrary *_handle = KLibLoader::self()->library( QFile::encodeName(absFile) );