From 512d2ccc4a5c512a70ee3464f8f7d894c5435051 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 20 Aug 2006 23:23:31 +0000 Subject: * bin/bbackupd/BackupDaemon.cpp - Removed redundant exception handler (BoxException extends std::exception) - Changed error to warning if an exception is caught while trying to clean up from another exception on the command socket --- bin/bbackupd/BackupDaemon.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'bin/bbackupd') diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index 7c279f73..9a3035ee 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -274,13 +274,6 @@ void BackupDaemon::RunHelperThread(void) { rSocket.Accept(BOX_NAMED_PIPE_NAME); } - catch(BoxException &e) - { - ::syslog(LOG_ERR, "Failed to open command socket: %s", - e.what()); - SetTerminateWanted(); - break; // this is fatal to listening thread - } catch(std::exception &e) { ::syslog(LOG_ERR, "Failed to open command socket: " @@ -465,7 +458,7 @@ void BackupDaemon::Run() } catch(std::exception &e) { - ::syslog(LOG_ERR, "Internal error while " + ::syslog(LOG_WARNING, "Internal error while " "closing command socket after " "another exception: %s", e.what()); } -- cgit v1.2.3