diff options
-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; } |