summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Daemon.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-04 16:32:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-04 16:32:57 +0100
commit230f151aa7e357c37040ed51bcbdbc1a766af82a (patch)
tree868d3ac924a3d1f13f02cec799edd661d6e2d504 /src/Daemon/Daemon.cpp
parent6eb4056d7b90fe3a69cee1e332e2a2957b76c9c5 (diff)
downloadabrt-230f151aa7e357c37040ed51bcbdbc1a766af82a.tar.gz
abrt-230f151aa7e357c37040ed51bcbdbc1a766af82a.tar.xz
abrt-230f151aa7e357c37040ed51bcbdbc1a766af82a.zip
simplify code which deletes corrupted debug dumps; kill unused EXCEP_FATAL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/Daemon.cpp')
-rw-r--r--src/Daemon/Daemon.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 6f901f3..f9910dc 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -343,11 +343,6 @@ static void FindNewDumps(const char* pPath)
VERB1 log("Already saved crash %s, deleting", itt->c_str());
delete_debug_dump_dir(itt->c_str());
break;
- case MW_BLACKLISTED:
- case MW_CORRUPTED:
- case MW_PACKAGE_ERROR:
- case MW_GPG_ERROR:
- case MW_FILE_ERROR:
default:
log("Corrupted or bad crash %s (res:%d), deleting", itt->c_str(), (int)res);
delete_debug_dump_dir(itt->c_str());
@@ -356,10 +351,6 @@ static void FindNewDumps(const char* pPath)
}
catch (CABRTException& e)
{
- if (e.type() == EXCEP_FATAL)
- {
- throw e;
- }
error_msg("%s", e.what());
}
}
@@ -545,12 +536,7 @@ static gboolean handle_inotify_cb(GIOChannel *gio, GIOCondition condition, gpoin
}
catch (CABRTException& e)
{
- error_msg(e.what());
- if (e.type() == EXCEP_FATAL)
- {
- free(buf);
- return -1;
- }
+ error_msg("%s", e.what());
}
catch (...)
{