about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2015-01-01 22:52:01 -0600
committerWill Song <incertia9474@gmail.com>2015-01-01 22:52:01 -0600
commite21bc7afe0b22c423e2b5ba3fc5bbd19eb341a6e (patch)
tree5343174e9f2bf48b8432a8c4da19efb1e6d13cba
parentab750597036f36198ecbc72b34b68436030cce0e (diff)
downloadprofani-tty-e21bc7afe0b22c423e2b5ba3fc5bbd19eb341a6e.tar.gz
added more signals to ignore in _init
-rw-r--r--src/profanity.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c
index fb352879..e53ac176 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -254,6 +254,8 @@ _init(const int disable_tls, char *log_level)
     setlocale(LC_ALL, "");
     // ignore SIGPIPE
     signal(SIGPIPE, SIG_IGN);
+    signal(SIGINT, SIG_IGN);
+    signal(SIGTSTP, SIG_IGN);
     _create_directories();
     log_level_t prof_log_level = log_level_from_string(log_level);
     prefs_load();