From 34f726e6beb1dc37386338b6d9d85b2a9ff4f019 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 15:23:51 +0200 Subject: [PATCH] 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. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"); -- 2.30.2