diff options
author | Timo Sirainen <cras@irssi.org> | 2001-06-01 20:21:07 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-06-01 20:21:07 +0000 |
commit | 6f5c1117debce23e12fdba370f0356bebf61d355 (patch) | |
tree | 494c31accacdffa85ef3cd786e07abcf5ddb2135 /src/fe-text | |
parent | 4ee62709654b6902673af81eb46564873da7d8a1 (diff) | |
download | irssi-6f5c1117debce23e12fdba370f0356bebf61d355.zip |
moved /SET ignore_signals to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1534 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/screen.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/fe-text/screen.c b/src/fe-text/screen.c index 5378b5c9..ea4a9add 100644 --- a/src/fe-text/screen.c +++ b/src/fe-text/screen.c @@ -76,41 +76,11 @@ static void sig_winch(int p) } #endif -static void read_signals(void) -{ -#ifndef WIN32 - int signals[] = { - SIGHUP, SIGINT, SIGQUIT, SIGTERM, - SIGALRM, SIGUSR1, SIGUSR2 - }; - char *signames[] = { - "hup", "int", "quit", "term", - "alrm", "usr1", "usr2" - }; - - const char *ignores; - struct sigaction act; - int n; - - ignores = settings_get_str("ignore_signals"); - - sigemptyset (&act.sa_mask); - act.sa_flags = 0; - - for (n = 0; n < sizeof(signals)/sizeof(signals[0]); n++) { - act.sa_handler = find_substr(ignores, signames[n]) ? - SIG_IGN : SIG_DFL; - sigaction(signals[n], &act, NULL); - } -#endif -} - static void read_settings(void) { int old_colors = use_colors; use_colors = settings_get_bool("colors"); - read_signals(); if (use_colors && !has_colors()) use_colors = FALSE; @@ -172,7 +142,6 @@ static int init_curses(void) static int init_screen_int(void) { use_colors = settings_get_bool("colors"); - read_signals(); scrx = scry = 0; freeze_refresh = 0; @@ -189,7 +158,6 @@ static void deinit_screen_int(void) int init_screen(void) { settings_add_bool("lookandfeel", "colors", TRUE); - settings_add_str("misc", "ignore_signals", ""); signal_add("setup changed", (SIGNAL_FUNC) read_settings); return init_screen_int(); |