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:
Ed Maste 2014-03-31 19:28:14 +00:00
parent ee1c342ef9
commit 801335cc64
1 changed files with 1 additions and 1 deletions

View File

@ -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);