From: Max Kellermann Date: Fri, 3 Oct 2008 13:23:51 +0000 (+0200) Subject: restart system call after SIGWINCH X-Git-Tag: v0.12_alpha1~73 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34f726e6beb1dc37386338b6d9d85b2a9ff4f019;p=ncmpc.git 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. --- diff --git a/src/main.c b/src/main.c index ca5663c..5bb2538 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)");