Code

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 a6d2c5dbcab768b32ce11abc986d6ec64b2c31f9..83ab044b7b2fb8d53bfb35422245c5513262302b 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)