when moving restart list remove new owner from it

This commit is contained in:
Marty Kraimer
2002-03-15 15:24:31 +00:00
parent 2054e9299a
commit a2fad6e62e

View File

@@ -287,15 +287,18 @@ static void notifyCancel(PUTNOTIFY *ppn)
ellDelete(&ppn->waitList,&ppnnode->node);
}
/*If on restartList remove it*/
if(ppn->restartNode.ppnrestartList)
if(ppn->restartNode.ppnrestartList) {
ellDelete(&ppn->restartNode.ppnrestartList->restartList,
&ppn->restartNode.node);
}
/*If this ppn has a restartList move it */
if((pfirst = (PNRESTARTNODE *)ellFirst(&ppn->restartList))) {
PNRESTARTNODE *pnext;
PUTNOTIFY *pfirstppn;
pfirstppn = pfirst->ppn;
ellDelete(&pfirstppn->restartNode.ppnrestartList->restartList,
&pfirstppn->restartNode.node);
ellConcat(&pfirstppn->restartList,&ppn->restartList);
pnext = (PNRESTARTNODE *)ellFirst(&pfirstppn->restartList);
while(pnext) {