From: Max Kellermann Date: Fri, 3 Oct 2008 13:23:46 +0000 (+0200) Subject: typo: ignore SIGPIPE instead of SIGWINCH X-Git-Tag: v0.12_alpha1~74 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e2a8e257885f8bfd4c052c4587dd8dbc4238e20;p=ncmpc.git typo: ignore SIGPIPE instead of SIGWINCH Somehow the "ignore SIGPIPE" patch had a fatal typo: instead of ignoring SIGPIPE, it ignored SIGWINCH. Somehow ncurses managed to hide the bug's symptoms, but a recent patch finally broke it. Repair the typo. --- diff --git a/src/main.c b/src/main.c index 9839234..ca5663c 100644 --- a/src/main.c +++ b/src/main.c @@ -408,8 +408,8 @@ main(int argc, const char *argv[]) act.sa_flags = SA_RESTART; act.sa_handler = SIG_IGN; - if (sigaction(SIGWINCH, &act, NULL) < 0) { - perror("sigaction(SIGWINCH)"); + if (sigaction(SIGPIPE, &act, NULL) < 0) { + perror("sigaction(SIGPIPE)"); exit(EXIT_FAILURE); }