mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Maybe I should have tried to run irssi after the ignore_signals "fix" ..
now really fixed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@297 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a53aa269c2
commit
27b82cea35
@ -84,12 +84,10 @@ void sigint_handler(int p)
|
||||
readline();
|
||||
}
|
||||
|
||||
static void read_settings(void)
|
||||
static void read_signals(void)
|
||||
{
|
||||
const char *ignores;
|
||||
|
||||
use_colors = settings_get_bool("colors");
|
||||
|
||||
ignores = settings_get_str("ignore_signals");
|
||||
signal(SIGHUP, find_substr(ignores, "hup") ? SIG_IGN : SIG_DFL);
|
||||
signal(SIGQUIT, find_substr(ignores, "quit") ? SIG_IGN : SIG_DFL);
|
||||
@ -98,6 +96,12 @@ static void read_settings(void)
|
||||
signal(SIGALRM, find_substr(ignores, "alrm") ? SIG_IGN : SIG_DFL);
|
||||
signal(SIGUSR1, find_substr(ignores, "usr1") ? SIG_IGN : SIG_DFL);
|
||||
signal(SIGUSR2, find_substr(ignores, "usr2") ? SIG_IGN : SIG_DFL);
|
||||
}
|
||||
|
||||
static void read_settings(void)
|
||||
{
|
||||
use_colors = settings_get_bool("colors");
|
||||
read_signals();
|
||||
irssi_redraw();
|
||||
}
|
||||
|
||||
@ -121,7 +125,7 @@ int init_screen(void)
|
||||
|
||||
settings_add_bool("lookandfeel", "colors", TRUE);
|
||||
settings_add_str("misc", "ignore_signals", "");
|
||||
read_settings();
|
||||
read_signals();
|
||||
|
||||
use_colors = settings_get_bool("colors") && has_colors();
|
||||
if (has_colors()) start_color();
|
||||
|
Loading…
Reference in New Issue
Block a user