summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
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();