diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 15:23:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 15:23:46 +0200 |
commit | 4e2a8e257885f8bfd4c052c4587dd8dbc4238e20 (patch) | |
tree | e0ff6252c311f75563c8fc0a251ba5a7d01400d6 /src/main.c | |
parent | ef040e296e46fcc7620edaf89ffac05e065ec3e3 (diff) | |
download | mpd-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 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
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); } |