aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 15:23:46 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 15:23:46 +0200
commit4e2a8e257885f8bfd4c052c4587dd8dbc4238e20 (patch)
treee0ff6252c311f75563c8fc0a251ba5a7d01400d6 /src
parentef040e296e46fcc7620edaf89ffac05e065ec3e3 (diff)
downloadmpd-4e2a8e257885f8bfd4c052c4587dd8dbc4238e20.tar.gz
mpd-4e2a8e257885f8bfd4c052c4587dd8dbc4238e20.tar.xz
mpd-4e2a8e257885f8bfd4c052c4587dd8dbc4238e20.zip
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.
Diffstat (limited to '')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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);
}