From 0d54e4e299b78916a12411f6e4e80dd3cf420bde Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 10 Mar 2002 15:20:44 +0000 Subject: 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 --- src/fe-text/irssi.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/fe-text/irssi.c') diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 76ab2d74..ca1d735b 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -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); -- cgit v1.2.3