Index: Doxyfile ================================================================== --- Doxyfile +++ Doxyfile @@ -21,9 +21,12 @@ OF_RETURNS_INNER_POINTER \ OF_RETURNS_NOT_RETAINED \ OF_RETURNS_RETAINED \ OF_ROOT_CLASS \ OF_SENTINEL \ - OF_WEAK_UNAVAILABLE + OF_WEAK_UNAVAILABLE \ + SIGHUP \ + SIGUSR1 \ + SIGUSR2 MACRO_EXPANSION = YES EXPAND_ONLY_PREDEF = YES IGNORE_PREFIX = OF of_ Index: src/OFApplication.h ================================================================== --- src/OFApplication.h +++ src/OFApplication.h @@ -11,10 +11,12 @@ * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ + +#include #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN @@ -64,11 +66,11 @@ * signal-safe operations like setting a variable or calling a * signal-safe function! */ - (void)applicationDidReceiveSIGINT; -#ifndef OF_WINDOWS +#ifdef SIGHUP /*! * @brief A method which is called when the application received a SIGHUP. * * This signal is not available on Windows. * @@ -76,11 +78,13 @@ * message dispatching is not signal-safe! You are only allowed to do * signal-safe operations like setting a variable or calling a * signal-safe function! */ - (void)applicationDidReceiveSIGHUP; +#endif +#ifdef SIGUSR1 /*! * @brief A method which is called when the application received a SIGUSR1. * * This signal is not available on Windows. * @@ -88,11 +92,13 @@ * message dispatching is not signal-safe! You are only allowed to do * signal-safe operations like setting a variable or calling a * signal-safe function! */ - (void)applicationDidReceiveSIGUSR1; +#endif +#ifdef SIGUSR2 /*! * @brief A method which is called when the application received a SIGUSR2. * * This signal is not available on Windows. * Index: src/OFApplication.m ================================================================== --- src/OFApplication.m +++ src/OFApplication.m @@ -96,13 +96,17 @@ { \ app->_##sig##Handler(app->_delegate, \ @selector(applicationDidReceive##sig)); \ } SIGNAL_HANDLER(SIGINT) -#ifndef OF_WINDOWS +#ifdef SIGHUP SIGNAL_HANDLER(SIGHUP) +#endif +#ifdef SIGUSR1 SIGNAL_HANDLER(SIGUSR1) +#endif +#ifdef SIGUSR2 SIGNAL_HANDLER(SIGUSR2) #endif #undef SIGNAL_HANDLER int @@ -460,13 +464,17 @@ #endif _delegate = delegate; REGISTER_SIGNAL(SIGINT) -#ifndef OF_WINDOWS +#ifdef SIGHUP REGISTER_SIGNAL(SIGHUP) +#endif +#ifdef SIGUSR1 REGISTER_SIGNAL(SIGUSR1) +#endif +#ifdef SIGUSR2 REGISTER_SIGNAL(SIGUSR2) #endif #undef REGISTER_SIGNAL }