summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/curses/gui-curses-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index 5a9976ca4..3578775e8 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -186,6 +186,11 @@ gui_main_signal_sigterm ()
void
gui_main_signal_sighup ()
{
+ /* SIGHUP signal is received when terminal is closed (exit of WeeChat
+ without using /quit command), that's why we set only flag to reload
+ config files later (when terminal is closed, config files are NOT
+ reloaded, but they are if signal SIGHUP is sent to WeeChat by user)
+ */
gui_reload_config = 1;
}