VM_ThreadLoop select() silently restarted when EINTR
authorshort <>
Tue, 26 Feb 2002 20:54:45 +0000 (20:54 +0000)
committershort <>
Tue, 26 Feb 2002 20:54:45 +0000 (20:54 +0000)
 - needed for non-threading version using SIGIO

common/data/virtmodem.c

index 664127f..2ff532a 100644 (file)
@@ -139,6 +139,8 @@ static bool VM_ThreadLoop(void)
                                break;
 
                        case -1:
                                break;
 
                        case -1:
+                               if (errno==EINTR)
+                                       continue;
                                perror("VM_ThreadLoop - select");
                                return (false);
 
                                perror("VM_ThreadLoop - select");
                                return (false);