From: octo Date: Sat, 4 Feb 2006 15:15:05 +0000 (+0000) Subject: Fixed VERY dumb typo in `liboping' X-Git-Tag: collectd-3.8.0~18 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=21d5ecaf8c13c5af21b93aa14c0ba3cac734cbdb;p=collectd.git Fixed VERY dumb typo in `liboping' --- diff --git a/src/liboping/liboping.c b/src/liboping/liboping.c index a6d2c5db..83ab044b 100644 --- a/src/liboping/liboping.c +++ b/src/liboping/liboping.c @@ -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)