Wget 1.9.1 uses usleep() incorrectly

2004-01-24 Thread Jesper Louis Andersen
Taking a peek inside the wget 1.9.1 source reveals the following construction used a number of times in src/retr.c: usleep(100L * opt.wait); There are a couple of problems with this approach. First, we have from the NetBSD man-page of usleep(3): The microseconds argument must be less

Re: Wget 1.9.1 uses usleep() incorrectly

2004-01-24 Thread Jesper Louis Andersen
Quoting Hrvoje Niksic ([EMAIL PROTECTED]): > Thanks for pointing this out -- I had no idea that some systems don't > allow usleep to sleep for more than a second. Why do they do that? I do not know. It conforms to XPG4.2, So I expect the limit to be on other operating systems too. > The latest

Re: Wget 1.9.1 uses usleep() incorrectly

2004-01-25 Thread Jesper Louis Andersen
Quoting Hrvoje Niksic ([EMAIL PROTECTED]): [...] Thanks, I'll try to backfeed the information into the PR today, so more people can look at it. -- j.