diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-23 06:46:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-23 06:46:20 +0000 |
commit | a8bd27ff666a0c5f7248f01670f0f53887359086 (patch) | |
tree | a7a5d98046499383a2490de08cfada268db9e1aa /lib | |
parent | eab5cb3b5558407fb715b3c6e2635a4367546e8a (diff) | |
download | external_llvm-a8bd27ff666a0c5f7248f01670f0f53887359086.zip external_llvm-a8bd27ff666a0c5f7248f01670f0f53887359086.tar.gz external_llvm-a8bd27ff666a0c5f7248f01670f0f53887359086.tar.bz2 |
fix a bug Alexei Svitkine pointed out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Signals.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Signals.inc b/lib/System/Unix/Signals.inc index dc3910c..be22bd8 100644 --- a/lib/System/Unix/Signals.inc +++ b/lib/System/Unix/Signals.inc @@ -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; } |