VM_ThreadLoop select() silently restarted when EINTR
[gnokii.git] / common / data / virtmodem.c
index 664127f..2ff532a 100644 (file)
@@ -139,6 +139,8 @@ static bool VM_ThreadLoop(void)
                                break;
 
                        case -1:
+                               if (errno==EINTR)
+                                       continue;
                                perror("VM_ThreadLoop - select");
                                return (false);