diff options
author | QC <qball@gmpclient.org> | 2015-07-27 21:20:06 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-07-27 21:20:06 +0200 |
commit | 70f4f3d119e85855902009e606f60caa5229997d (patch) | |
tree | 459dfdd8d63c11db6af6bc2ee35f33fbbd1c7ea3 /source | |
parent | 2bbd589f0d317032bc4b618b4d054cf0764cc548 (diff) |
Remove HUP signal handler as it is incorrect. #193, to be re-added later
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source/rofi.c b/source/rofi.c index 745396ce..a2d1656f 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1716,32 +1716,6 @@ static inline void load_configuration_dynamic ( Display *display ) } -/** - * Handle sighup request. - * Currently we just reload the configuration. - */ -static void hup_action_handler ( int num ) -{ - if ( num == SIGHUP ) { - /** - * Open new connection to X. It seems the XResources do not get updated on the old - * connection. - */ - if ( find_arg ( "-no-config" ) < 0 ) { - Display *display = XOpenDisplay ( display_str ); - if ( display ) { - load_configuration ( display ); - load_configuration_dynamic ( display ); - - // Sanity check - config_sanity_check ( ); - parse_keys_abe (); - XCloseDisplay ( display ); - } - } - } -} - static void show_error_message ( const char *msg, int markup ) { // Create pid file @@ -1934,12 +1908,6 @@ int main ( int argc, char *argv[] ) } } } - // Setup handler for sighup (reload config) - const struct sigaction hup_action = { - .sa_handler = hup_action_handler - }; - sigaction ( SIGHUP, &hup_action, NULL ); - // Application Main loop. // This listens in the background for any events on the Xserver |