mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
ee8229be48
commit
0d54e4e299
3 changed files with 21 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue