a trap from a routine called by the termination sequence could

cause an infinite loop. This is prevented
This commit is contained in:
ceriel 1989-05-12 09:36:16 +00:00
parent 7531131416
commit 13bc7e128d

View file

@ -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;
} }