From: NAKAMURA Takumi Date: Fri, 22 Oct 2010 01:23:50 +0000 (+0000) Subject: Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2172f3cd971d7446123f8bdc72b381adde0ea559;p=oota-llvm.git Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection. It choked BugPoint on Mingw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117083 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/Win32/Signals.inc b/lib/System/Win32/Signals.inc index 4bafe41d311..8f880f7fdf6 100644 --- a/lib/System/Win32/Signals.inc +++ b/lib/System/Win32/Signals.inc @@ -143,6 +143,8 @@ void sys::DontRemoveFileOnSignal(const sys::Path &Filename) { if (FilesToRemove == NULL) return; + RegisterHandler(); + FilesToRemove->push_back(Filename); std::vector::reverse_iterator I = std::find(FilesToRemove->rbegin(), FilesToRemove->rend(), Filename);