2012/4/11 Adrian Szyndela <[email protected]>: > Hi, > > I'm attaching a patch for way too long wait on poll() during arpping > after IP address acquiring over DHCP. > > It happens on a platform which starts with Epoch time. Then, at some > point, a correct time source appears, and an actual time is set. > > If an actual time is set during wait on poll(), computing of a timeout > overflows on unsigned type. The patch just changes types to stay with > long long computing. > > Before applying the patch the side effect of setting an actual time is > close to hangup - with no IP address assigned. After applying the patch > the side effect of time change is that poll() might wait shorter than > desired 2 seconds in case of socket activity.
Thanks for diagnosing this. I fixed it in git a bit differently. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
