Bug 1176085 - Fix second/nanosecond confusion in Linux sandbox start error case. r=kang

--HG--
extra : amend_source : e546416d9c058305f4cb00d1c015daaec8ab1362
This commit is contained in:
Jed Davis 2015-06-19 14:26:44 -07:00
Родитель bbdd38fdde
Коммит 1fb9a20a64
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -394,8 +394,8 @@ BroadcastSetThreadSandbox(UniquePtr<sock_filter[]> aProgram, size_t aProgLen)
} }
struct timespec now; struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now); clock_gettime(CLOCK_MONOTONIC, &now);
if (now.tv_sec > timeLimit.tv_nsec || if (now.tv_sec > timeLimit.tv_sec ||
(now.tv_sec == timeLimit.tv_nsec && (now.tv_sec == timeLimit.tv_sec &&
now.tv_nsec > timeLimit.tv_nsec)) { now.tv_nsec > timeLimit.tv_nsec)) {
SANDBOX_LOG_ERROR("Thread %d unresponsive for %d seconds." SANDBOX_LOG_ERROR("Thread %d unresponsive for %d seconds."
" Killing process.", " Killing process.",