]> git.ipfire.org Git - thirdparty/squid.git/commit - src/main.cc
Catch most exceptions in main() to report exceptions uncaught by Squid. This
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Sep 2008 17:28:53 +0000 (11:28 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Sep 2008 17:28:53 +0000 (11:28 -0600)
commitc842329da28b9188b46053babfb2cf6cc3ceba59
tree4b69a80c937ca10e4c1aecc7006fe88d3727de9e
parent1788b28c6ffd8269a26e356295f0bc213a876ff4
Catch most exceptions in main() to report exceptions uncaught by Squid.  This
is for last resort reporting only -- the program would exit anyway (usually
with less information) if we did not catch these.

The code re-throws caught exceptions to reduce side effects of catching it,
just in case. May need more work depending on how compilers handle rethrowing.

These changes were inspired by eCAP.
src/main.cc