Correct watchdog timeout

am: bfef9c5748

Change-Id: I5aa361f2ba38e5be9c6c2e673932f353332df1b7
This commit is contained in:
Jeff Tinker
2017-07-21 22:11:18 +00:00
committed by android-build-merger

View File

@@ -954,7 +954,7 @@ class WatchDog {
pthread_mutex_lock(&mutex_);
struct timespec time_to_giveup;
clock_gettime(CLOCK_REALTIME, &time_to_giveup);
time_to_giveup.tv_sec += 2; // wait 2 seconds.
time_to_giveup.tv_sec += 5; // wait 5 seconds.
if (running_) {
pthread_cond_timedwait(&condition_, &mutex_, &time_to_giveup);
}