diff --git a/src/profanity.c b/src/profanity.c index 6b59f18c..2ce0840e 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -24,6 +24,7 @@ #include #include +#include #include @@ -364,6 +365,8 @@ _process_input(char *inp) static void _init(const int disable_tls, char *log_level) { + // ignore SIGPIPE + signal(SIGPIPE, SIG_IGN); _create_config_directory(); log_level_t prof_log_level = _get_log_level(log_level); log_init(prof_log_level);