diff options
-rw-r--r-- | src/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 2d2b07c24..28cce938f 100644 --- a/src/main.c +++ b/src/main.c @@ -421,6 +421,15 @@ main(int argc, const char *argv[]) exit(EXIT_FAILURE); } + /* ignore SIGPIPE */ + + act.sa_flags = SA_RESTART; + act.sa_handler = SIG_IGN; + if (sigaction(SIGWINCH, &act, NULL) < 0) { + perror("sigaction(SIGWINCH)"); + exit(EXIT_FAILURE); + } + ncu_init(); #ifdef ENABLE_LYRICS_SCREEN |