a trap from a routine called by the termination sequence could
cause an infinite loop. This is prevented
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user