summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-27 17:56:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-27 17:56:04 +0000
commitab252e87d243d448bb66749ee5836883fd5431a9 (patch)
treecf8bdbf4570bbfa7e14c78142ecdce1e1812b3e7
parent7fd5e906cc5dcdc400d3d1ff4193a4f04d0bf625 (diff)
downloadtdebase-ab252e87d243d448bb66749ee5836883fd5431a9.tar.gz
tdebase-ab252e87d243d448bb66749ee5836883fd5431a9.zip
Set crash handler to built in invisible handler, as some third-party plugins are poorly written and crash often
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1108062 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--nsplugins/pluginscan.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/nsplugins/pluginscan.cpp b/nsplugins/pluginscan.cpp
index b7c0ad1ff..cfa544429 100644
--- a/nsplugins/pluginscan.cpp
+++ b/nsplugins/pluginscan.cpp
@@ -358,6 +358,7 @@ void scanDirectory( QString dir, QStringList &mimeInfoList,
} else if (loader_pid == 0) {
// inside the child
close(pipes[0]);
+ KCrash::setCrashHandler(segv_handler);
_exit(tryCheck(pipes[1], absFile));
} else {
close(pipes[1]);