rem: WWindowState *wins;
add: int i;
context: handleDeadProcess(void *foo){    DeathHandler *tmp;    WWindowState *wins;    int tmpPtr = deadProcessPtr;    if (windowState) {        while (tmpPtr>0) {            tmpPtr--;            wins = windowState;            while (wins) {                WWindowState *t;                t = wins->next;                if (wins->pid == deadProcesses[tmpPtr].pid) {                    wDeleteWindowSavedState(wins);                }                wins = t;            }        }    }    if (!deathHandler) {	deadProcessPtr=0;	return;    }	    /* get the pids on the queue and call handlers */    while (deadProcessPtr>0) {	deadProcessPtr--;	tmp = deathHandler;	while (tmp) {	    DeathHandler *t;	    	    t = tmp->next;	    if (tmp->pid == deadProcesses[deadProcessPtr].pid) {		(*tmp->callback)(tmp->pid, 				 deadProcesses[deadProcessPtr].exit_status,				 tmp->client_data);		wDeleteDeathHandler(tmp);	    }	    tmp = t;	}    }}