Author: emaste
Date: Tue Apr 29 13:09:44 2014
New Revision: 207566
URL: http://llvm.org/viewvc/llvm-project?rev=207566&view=rev
Log:
Fix interval recalculation in the event that usleep is interrupted
Modified:
lldb/trunk/test/expression_command/timeout/wait-a-while.c
Modified: lldb/trunk/test/expression_command/timeout/wait-a-while.c
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/timeout/wait-a-while.c?rev=207566&r1=207565&r2=207566&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/timeout/wait-a-while.c (original)
+++ lldb/trunk/test/expression_command/timeout/wait-a-while.c Tue Apr 29
13:09:44 2014
@@ -21,7 +21,7 @@ wait_a_while (useconds_t interval)
{
struct timeval now;
gettimeofday(&now, NULL);
- interval = target - now.tv_sec * 1000000 + now.tv_usec;
+ interval = target - (now.tv_sec * 1000000 + now.tv_usec);
}
else
break;
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits