On Tue, Jan 27, 2015 at 09:51:29PM +0100, Denys Vlasenko wrote:
> Hmm, I think it's a sign-extension bug. Can you try replacing
> 
> tv.tv_sec = timeout_end - monotonic_sec();
> 
> with
> 
> tv.tv_sec = (int)(timeout_end - monotonic_sec());
> 
> I suspect this will fix the behavior.

In fact, I'm going to smack myself now for not having noticed this
earlier on...

I noticed also that Denys has already committed a patch for this, so I'm
not going to drag this thread out any longer than it already is.

Thanks all!

Tim

Attachment: pgp3LcCVigjMj.pgp
Description: PGP signature

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to