SIGHUP now does /RELOAD - useful with for example /SBAR prompt DISABLE when

you don't have an input line to recover :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2556 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-10 15:20:44 +00:00 committed by cras
commit 0d54e4e299
3 changed files with 21 additions and 3 deletions

View file

@ -348,7 +348,14 @@ int main(int argc, char **argv)
can call our dirty-checker after each iteration */
while (!quitting) {
g_main_iteration(TRUE);
dirty_check();
if (reload_config) {
/* SIGHUP received, do /RELOAD */
reload_config = FALSE;
signal_emit("command reload", 1, "");
}
dirty_check();
}
g_main_destroy(main_loop);