mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
fix a bug Alexei Svitkine pointed out.
llvm-svn: 67510
This commit is contained in:
parent
910f31715e
commit
095a3938e4
@ -93,8 +93,8 @@ static void RegisterHandlers() {
|
||||
static void UnregisterHandlers() {
|
||||
// Restore all of the signal handlers to how they were before we showed up.
|
||||
for (unsigned i = 0, e = NumRegisteredSignals; i != e; ++i)
|
||||
sigaction(RegisteredSignalInfo[NumRegisteredSignals].SigNo,
|
||||
&RegisteredSignalInfo[NumRegisteredSignals].SA, 0);
|
||||
sigaction(RegisteredSignalInfo[i].SigNo,
|
||||
&RegisteredSignalInfo[i].SA, 0);
|
||||
NumRegisteredSignals = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user