From 330a4cf573e23eb264cdb54e1a4e97f0834c8db6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Aug 2018 20:14:05 +0200 Subject: [PATCH] Main: remove exception handler from mpd_main_after_fork() Let MainOrThrow() forward it to mpd_main(). --- src/Main.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index 8e7fc1236..49f3ea731 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -547,7 +547,7 @@ int mpd_main(int argc, char *argv[]) static int mpd_main_after_fork(const ConfigData &raw_config, const Config &config) -try { +{ ConfigureFS(raw_config); glue_mapper_init(raw_config); @@ -721,9 +721,6 @@ try { IcuFinish(); return EXIT_SUCCESS; -} catch (const std::exception &e) { - LogError(e); - return EXIT_FAILURE; } #ifdef ANDROID