Fixed VERY dumb typo in `liboping'
authorocto <octo>
Sat, 4 Feb 2006 15:15:05 +0000 (15:15 +0000)
committerocto <octo>
Sat, 4 Feb 2006 15:15:05 +0000 (15:15 +0000)
src/liboping/liboping.c

index a6d2c5d..83ab044 100644 (file)
@@ -364,10 +364,9 @@ static int ping_receive_all (pinghost_t *ph)
 
                status = select (max_readfds + 1, &readfds, NULL, NULL, &timeout);
                
-               if (status == EINTR)
+               if ((status == -1) && (errno == EINTR))
                {
                        dprintf ("select was interrupted by signal..\n");
-                       break; /* XXX */
                        continue;
                }
                else if (status < 0)