forked from OSchip/llvm-project
Fix one thread timeout logic
This should fix the seemingly-random failures observed on the FreeBSD buildbot. llvm-svn: 205241
This commit is contained in:
parent
ee1c342ef9
commit
801335cc64
|
@ -5181,7 +5181,7 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
|
||||||
// If the overall wait is forever, then we only need to set the one thread timeout:
|
// If the overall wait is forever, then we only need to set the one thread timeout:
|
||||||
if (timeout_usec == 0)
|
if (timeout_usec == 0)
|
||||||
{
|
{
|
||||||
if (option_one_thread_timeout == 0)
|
if (option_one_thread_timeout != 0)
|
||||||
one_thread_timeout.OffsetWithMicroSeconds(option_one_thread_timeout);
|
one_thread_timeout.OffsetWithMicroSeconds(option_one_thread_timeout);
|
||||||
else
|
else
|
||||||
one_thread_timeout.OffsetWithMicroSeconds(default_one_thread_timeout_usec);
|
one_thread_timeout.OffsetWithMicroSeconds(default_one_thread_timeout_usec);
|
||||||
|
|
Loading…
Reference in New Issue