forked from OSchip/llvm-project
parent
fb95472123
commit
f2b60658ef
|
@ -93,8 +93,8 @@ static void RegisterHandlers() {
|
||||||
static void UnregisterHandlers() {
|
static void UnregisterHandlers() {
|
||||||
// Restore all of the signal handlers to how they were before we showed up.
|
// Restore all of the signal handlers to how they were before we showed up.
|
||||||
for (unsigned i = 0, e = NumRegisteredSignals; i != e; ++i)
|
for (unsigned i = 0, e = NumRegisteredSignals; i != e; ++i)
|
||||||
sigaction(RegisteredSignalInfo[NumRegisteredSignals].SigNo,
|
sigaction(RegisteredSignalInfo[i].SigNo,
|
||||||
&RegisteredSignalInfo[NumRegisteredSignals].SA, 0);
|
&RegisteredSignalInfo[i].SA, 0);
|
||||||
NumRegisteredSignals = 0;
|
NumRegisteredSignals = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue