"Gisle Vanem" <[EMAIL PROTECTED]> writes:
> "Hrvoje Niksic" <[EMAIL PROTECTED]> said:
>
>> I've committed this patch, with minor changes, such as moving the code
>> to mswindows.c. Since I don't have MSVC, someone else will need to
>> check that the code compiles. Please let me know how it goes.
"Hrvoje Niksic" <[EMAIL PROTECTED]> said:
> I've committed this patch, with minor changes, such as moving the code
> to mswindows.c. Since I don't have MSVC, someone else will need to
> check that the code compiles. Please let me know how it goes.
It compiled it with MSVC okay, but crashed some
I've committed this patch, with minor changes, such as moving the code
to mswindows.c. Since I don't have MSVC, someone else will need to
check that the code compiles. Please let me know how it goes.
"Gisle Vanem" <[EMAIL PROTECTED]> writes:
> I've patched util.c to make run_with_timeout() work on Windows
> (better than it does with alarm()!).
Cool, thanks! Note that, to save the honor of Unix, I've added
support for setitimer on systems that support it (virtually everything
these days), so
Forgot this in src/Changelog:
2003-10-02 Gisle Vanem <[EMAIL PROTECTED]>
* utils.c (run_with_timeout): For Windows: Run the 'fun' in
a thread via a helper function. Continually query the
thread's exit-code until finished or timed out.
I've patched util.c to make run_with_timeout() work on
Windows (better than it does with alarm()!).
In short it creates and starts a thread, then loops querying
the thread exit-code. breaks if != STLL_ACTIVE, else sleep
for 0.1 sec. Uses a wget_timer too for added accuracy.
Tested with --dns-tim