summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-02 19:55:33 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-02 19:55:33 +0000
commit14457371c8a88655d20664f32ab7629785a741d8 (patch)
tree961132d8c163367440eff0a454daa4aedc1dce7e /src/fe-text
parent0ce3f8243eb564063c66a1b32169109af17e4081 (diff)
downloadirssi-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
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/irssi.c9
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();