chiark / gitweb /
new energy functions
[moebius2.git] / view.c
diff --git a/view.c b/view.c
index d2650113e0d00f98d703c67928f2aa072a6ea0b6..8983f622be5abed2d5f6bb9e5949bc781cd8967b 100644 (file)
--- a/view.c
+++ b/view.c
@@ -659,7 +659,10 @@ int main(int argc, const char *const *argv) {
     polls[i].events= wantedevents;
 
     r= poll(polls, nxfds+1, motion_deferred ? 0 : 200);
-    if (r<0) diee("poll");
+    if (r<0) {
+      if (errno==EINTR) continue;
+      diee("poll");
+    }
 
     for (i=0; i<nxfds; i++)
       if (polls[i].revents)