summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e2a8e2)
raw | patch | inline | side by side (parent: 4e2a8e2)
author | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 13:23:51 +0000 (15:23 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 13:23:51 +0000 (15:23 +0200) |
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.
function is called by the glib main loop anyway, no need to interrupt
any random system call here.
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index ca5663c13c0dd0557b4a98b90d9db9d4a7d90fc8..5bb2538f1affddeeefd80a2212887fec3bbb78fd 100644 (file)
--- a/src/main.c
+++ b/src/main.c
/* setup SIGWINCH */
+ act.sa_flags = SA_RESTART;
act.sa_handler = catch_sigwinch;
if (sigaction(SIGWINCH, &act, NULL) < 0) {
perror("sigaction(SIGWINCH)");
/* ignore SIGPIPE */
- act.sa_flags = SA_RESTART;
act.sa_handler = SIG_IGN;
if (sigaction(SIGPIPE, &act, NULL) < 0) {
perror("sigaction(SIGPIPE)");