diff --git a/src/musikbox/Main.cpp b/src/musikbox/Main.cpp index 217bd140b..0dd27b32a 100644 --- a/src/musikbox/Main.cpp +++ b/src/musikbox/Main.cpp @@ -203,6 +203,9 @@ int main(int argc, char* argv[]) #else freopen("/dev/null", "w", stderr); #endif + + std::signal(SIGWINCH, resizeHandler); + std::signal(SIGHUP, hangupHandler); #endif #ifdef __PDCURSES__ @@ -210,11 +213,6 @@ int main(int argc, char* argv[]) PDC_set_function_key(FUNCTION_KEY_SHUT_DOWN, 4); #endif -#ifndef WIN32 - std::signal(SIGWINCH, resizeHandler); - std::signal(SIGHUP, hangupHandler); -#endif - musik::debug::init(); PluginFactory::Instance(); /* initialize */