зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1176085 - Fix second/nanosecond confusion in Linux sandbox start error case. r=kang
--HG-- extra : amend_source : e546416d9c058305f4cb00d1c015daaec8ab1362
This commit is contained in:
Родитель
bbdd38fdde
Коммит
1fb9a20a64
|
@ -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.",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче