summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef040e2)
raw | patch | inline | side by side (parent: ef040e2)
author | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 13:23:46 +0000 (15:23 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 13:23:46 +0000 (15:23 +0200) |
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.
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 | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index 9839234372c05fb87719f8702a78b38211059fd9..ca5663c13c0dd0557b4a98b90d9db9d4a7d90fc8 100644 (file)
--- a/src/main.c
+++ b/src/main.c
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);
}