bugfix: fix timeout issue on Solaris (Sandor Geller)

pull/5/merge
David Schweikert 13 years ago
parent c3c0eca384
commit 8047122e85

@ -1,6 +1,6 @@
UNRELEASED
David Schweikert <david@schweikert.ch>
- Revision v3.1 ALPHA
- Revision v3.1 RC1
* -g option (generate): exclude network and broadcast address for cidr
ranges (idea by Eric Brander)
* do not explicitely check if running as root, to make it possible to
@ -9,6 +9,7 @@ David Schweikert <david@schweikert.ch>
* ANSI C (C89) compiler now a requirement
* portability fixes
* reorganized source directory
* bugfix: fix timeout issue on Solaris (Sandor Geller)
Thu Dec 28 2011
David Schweikert <david@schweikert.ch>

@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl Minimum Autoconf version required.
AC_PREREQ(2.59)
AC_INIT([fping],[3.0])
AC_INIT([fping],[3.1-rc1])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([foreign])

@ -2619,6 +2619,10 @@ int recvfrom_wto( int s, char *buf, int len, FPING_SOCKADDR *saddr, long timo )
to.tv_sec = 0;
to.tv_usec = timo * 10;
while (to.tv_usec > 1000000) {
to.tv_sec++;
to.tv_usec -= 1000000;
}
FD_ZERO( &readset );
FD_ZERO( &writeset );

Loading…
Cancel
Save