diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 15:23:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 15:23:51 +0200 |
commit | 34f726e6beb1dc37386338b6d9d85b2a9ff4f019 (patch) | |
tree | 2a279a70060d551bb20fa1d90fdc595ce862aa94 /src/main.c | |
parent | 4e2a8e257885f8bfd4c052c4587dd8dbc4238e20 (diff) | |
download | mpd-34f726e6beb1dc37386338b6d9d85b2a9ff4f019.tar.gz mpd-34f726e6beb1dc37386338b6d9d85b2a9ff4f019.tar.xz mpd-34f726e6beb1dc37386338b6d9d85b2a9ff4f019.zip |
restart system call after SIGWINCH
Set option SA_RESTART for the SIGWINCH handler. The screen resizer
function is called by the glib main loop anyway, no need to interrupt
any random system call here.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index ca5663c13..5bb2538f1 100644 --- a/src/main.c +++ b/src/main.c @@ -398,6 +398,7 @@ main(int argc, const char *argv[]) /* setup SIGWINCH */ + act.sa_flags = SA_RESTART; act.sa_handler = catch_sigwinch; if (sigaction(SIGWINCH, &act, NULL) < 0) { perror("sigaction(SIGWINCH)"); @@ -406,7 +407,6 @@ main(int argc, const char *argv[]) /* ignore SIGPIPE */ - act.sa_flags = SA_RESTART; act.sa_handler = SIG_IGN; if (sigaction(SIGPIPE, &act, NULL) < 0) { perror("sigaction(SIGPIPE)"); |