summaryrefslogtreecommitdiffabout
path: root/src/iiid.cc
Unidiff
Diffstat (limited to 'src/iiid.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--src/iiid.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iiid.cc b/src/iiid.cc
index d655fe3..b3dd3bf 100644
--- a/src/iiid.cc
+++ b/src/iiid.cc
@@ -86,12 +86,14 @@ int main(int argc,char **argv) try {
86 globfree(&g); 86 globfree(&g);
87 87
88 eyefiworker().run(port); 88 eyefiworker().run(port);
89 89
90 closelog(); 90 closelog();
91 return 0; 91 return 0;
92} catch(std::exception& e) { 92} catch(const throwable_exit& e) {
93 return e.rc;
94} catch(const std::exception& e) {
93 syslog(LOG_CRIT,"Exiting iii daemon, because of error condition"); 95 syslog(LOG_CRIT,"Exiting iii daemon, because of error condition");
94 syslog(LOG_CRIT,"Exception: %s",e.what()); 96 syslog(LOG_CRIT,"Exception: %s",e.what());
95 return 1; 97 return 1;
96} 98}
97 99