This commit is contained in:
Chris Jones 2010-01-26 20:08:35 -06:00
Родитель 716e3b9b25
Коммит 9a2a126cb4
1 изменённых файлов: 5 добавлений и 16 удалений

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

@ -122,25 +122,14 @@ protected:
#if 0
HANDLE_EINTR(waitpid(process_, NULL, 0));
#else
const int maxWaits = 30;
int waits = 0;
while (!IsProcessDead(process_) && ++waits < maxWaits)
sleep(1);
if (waits < maxWaits) {
printf("TEST-UNEXPECTED-FAIL | process %d done busy-waiting on | child process %d\n", getpid(), process_);
}
else {
printf("TEST-UNEXPECTED-FAIL | process %d wait on | child process %d timed out!\n", getpid(), process_);
// kill the child in such a way that breakpad is triggered
kill(process_, SIGSEGV);
HANDLE_EINTR(waitpid(process_, NULL, 0));
}
#endif
printf("TEST-UNEXPECTED-FAIL | process %d done busy-waiting on | child process %d\n", getpid(), process_);