summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-30 15:51:19 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-30 15:51:19 +0200
commitf8001cbb6eca7709cc24285f89ca7cd448fbb9d8 (patch)
treeea95bc431fd34496d838be85acc4cd78df167de1 /src
parent886b81498f2b0e738c16ec55d4675f3c8555117d (diff)
downloadweechat-f8001cbb6eca7709cc24285f89ca7cd448fbb9d8.zip
Added comment in source for SIGHUP signal
Diffstat (limited to 'src')
-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;
}