a trap from a routine called by the termination sequence could
cause an infinite loop. This is prevented
This commit is contained in:
parent
7531131416
commit
13bc7e128d
|
@ -15,10 +15,8 @@ static int (*proclist[MAXPROCS])();
|
||||||
|
|
||||||
_cleanup()
|
_cleanup()
|
||||||
{
|
{
|
||||||
register int i;
|
while (--callindex >= 0)
|
||||||
|
(*proclist[callindex])();
|
||||||
for (i = callindex; --i >= 0;) {
|
|
||||||
(*proclist[i])();
|
|
||||||
}
|
}
|
||||||
callindex = 0;
|
callindex = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue