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()
|
||||
{
|
||||
register int i;
|
||||
|
||||
for (i = callindex; --i >= 0;) {
|
||||
(*proclist[i])();
|
||||
while (--callindex >= 0)
|
||||
(*proclist[callindex])();
|
||||
}
|
||||
callindex = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue