Loading sls/trunk/src/sls.cc +13 −2 Original line number Diff line number Diff line Loading @@ -77,9 +77,20 @@ int main(int argc, char *argv[]) return ERR_NO; } catch (const Error &e) { if (S.started()) S.stop(); if (D.opened()) D.close(); // Close server if started if (S.started()) S.stop(); // Save data in database if (D.opened()) D.close(); // print error e.print(); // Print exit code if in daemon and verbose mode if (O.daemon && O.verbose) std::cerr << "Exit with code: " << e.code() << std::endl; return e.code(); } } Loading
sls/trunk/src/sls.cc +13 −2 Original line number Diff line number Diff line Loading @@ -77,9 +77,20 @@ int main(int argc, char *argv[]) return ERR_NO; } catch (const Error &e) { if (S.started()) S.stop(); if (D.opened()) D.close(); // Close server if started if (S.started()) S.stop(); // Save data in database if (D.opened()) D.close(); // print error e.print(); // Print exit code if in daemon and verbose mode if (O.daemon && O.verbose) std::cerr << "Exit with code: " << e.code() << std::endl; return e.code(); } }