From 4e2a8e257885f8bfd4c052c4587dd8dbc4238e20 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 15:23:46 +0200 Subject: 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. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 983923437..ca5663c13 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); } -- cgit v1.2.3