top: forest view contingency sentinal code added
This commit is contained in:
parent
db602e1d44
commit
be4d00ffe9
7
top.c
7
top.c
@ -3137,6 +3137,13 @@ static void forest_create (WIN_t *q) {
|
|||||||
}
|
}
|
||||||
while (0 == Seed_ppt[i]->ppid) // identify trees (expect 2)
|
while (0 == Seed_ppt[i]->ppid) // identify trees (expect 2)
|
||||||
forest_add(i++, 0); // add parent plus children
|
forest_add(i++, 0); // add parent plus children
|
||||||
|
if (Frame_maxtask != Tree_idx) { // guard against contingencies
|
||||||
|
error_exit(fmtmk( // in future kernels
|
||||||
|
"An anomaly was encountered, please see\n\t"
|
||||||
|
"http://www.debian.org/Bugs/Reporting\n\t"
|
||||||
|
"and note: 'Frame_maxtask(%d) != Tree_idx(%d)'\n"
|
||||||
|
, Frame_maxtask, Tree_idx));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
memcpy(Seed_ppt, Tree_ppt, sizeof(proc_t*) * Frame_maxtask);
|
memcpy(Seed_ppt, Tree_ppt, sizeof(proc_t*) * Frame_maxtask);
|
||||||
} // end: forest_create
|
} // end: forest_create
|
||||||
|
Loading…
Reference in New Issue
Block a user