AddSignalHandler was not releasing the critical section on win32.

Patch from Gianluigi Tiesi!

llvm-svn: 100003
This commit is contained in:
Torok Edwin 2010-03-31 12:07:16 +00:00
parent a87014f73d
commit 6fb0956291
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >();
CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie));
RegisterHandler();
LeaveCriticalSection(&CriticalSection);
}
}