mirror of
https://github.com/mirror/wget.git
synced 2025-03-14 20:00:15 +08:00
Disable timeouts when there are threads
This commit is contained in:
parent
a528894d13
commit
f29fded6f4
@ -1,3 +1,7 @@
|
||||
2013-07-12 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* utils.c (run_with_timeout): abort when there are more threads.
|
||||
|
||||
2013-07-11 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||
|
||||
* gnutls.c (ssl_connect_wget): respect connect timeout.
|
||||
|
10
src/utils.c
10
src/utils.c
@ -2008,6 +2008,16 @@ run_with_timeout (double timeout, void (*fun) (void *), void *arg)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_THREADS
|
||||
if (opt.jobs > 1)
|
||||
{
|
||||
/* XXX: FIXME. Support this functionality when there are
|
||||
multiple threads. Do not translate the string. */
|
||||
logputs (LOG_NOTQUIET, "\ntimeouts not (yet) supported with threads.\n");
|
||||
abort ();
|
||||
}
|
||||
#endif
|
||||
|
||||
signal (SIGALRM, abort_run_with_timeout);
|
||||
if (SETJMP (run_with_timeout_env) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user