commit db52671677a88dbcb67c6437e14831b3b6728863
parent 8667fc2dcea62389ed4f781ab5a45b495f0a3999
Author: sin <sin@2f30.org>
Date: Thu, 2 Jun 2016 18:16:23 +0100
Don't die on EINTR
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ncmixer.c b/ncmixer.c
@@ -236,8 +236,11 @@ loop(void)
for (;;) {
nready = poll(pfd, LEN(pfd), 1000 / FPS);
- if (nready == -1)
- err(1, "poll");
+ if (nready == -1) {
+ if (errno != EINTR)
+ err(1, "poll");
+ continue;
+ }
if (nready == 0)
continue; /* XXX: call ui refresh */