diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-02 19:55:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-02 19:55:33 +0000 |
commit | 14457371c8a88655d20664f32ab7629785a741d8 (patch) | |
tree | 961132d8c163367440eff0a454daa4aedc1dce7e | |
parent | 0ce3f8243eb564063c66a1b32169109af17e4081 (diff) | |
download | irssi-14457371c8a88655d20664f32ab7629785a741d8.zip |
Ignoring SIGTRAP signal which is sent at /UPGRADE time.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2375 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/irssi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 66545265..76ab2d74 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -136,6 +136,15 @@ static void dirty_check(void) static void textui_init(void) { +#ifdef SIGTRAP + struct sigaction act; + + sigemptyset(&act.sa_mask); + act.sa_flags = 0; + act.sa_handler = SIG_IGN; + sigaction(SIGTRAP, &act, NULL); +#endif + irssi_gui = IRSSI_GUI_TEXT; core_init(); irc_init(); |