Try to fix bug 535585 (random tests failing with xpcshell return code 1) by switching to the non-TerminateThread codepath provided by Breakpad

This commit is contained in:
Ted Mielczarek 2010-01-29 07:18:14 -05:00
parent 88d42265f1
commit 4d8648dfce
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ LIBRARY_NAME = exception_handler_s
XPI_NAME = crashreporter
LOCAL_INCLUDES = -I$(srcdir)/../../..
DEFINES += -DUNICODE -D_UNICODE
DEFINES += -DUNICODE -D_UNICODE -DBREAKPAD_NO_TERMINATE_THREAD
CPPSRCS = \
exception_handler.cc \

View File

@ -284,7 +284,7 @@ ExceptionHandler::~ExceptionHandler() {
ReleaseSemaphore(handler_start_semaphore_, 1, NULL);
WaitForSingleObject(handler_thread_, kWaitForHandlerThreadMs);
#else
TerminateThread(handler_thread_, 44);
TerminateThread(handler_thread_, 1);
#endif // BREAKPAD_NO_TERMINATE_THREAD
CloseHandle(handler_thread_);