plan 9 kernel history: overview | file list | diff list

1991/0425/port/proc.c (diff list | history)

1991/0425/sys/src/9/port/proc.c:60,711991/0430/sys/src/9/port/proc.c:60,72 (short | long | prev | next)
Something about pidonmach and locking XXX. Handle case where process disappears during postnote.
rsc Mon Mar 20 17:14:09 2006
1990/0227    
			ready(p); 
		else if(p->state == Moribund){ 
			p->pid = 0; 
			unlock(&p->debug); 
			p->upage->ref--; 
1991/0430    
			memset(p->pidonmach, 0, sizeof p->pidonmach); 
1990/0227    
			/* procalloc already locked */ 
			p->qnext = procalloc.free; 
			procalloc.free = p; 
1991/0430    
			p->upage->ref--; 
1990/0227    
			p->upage = 0; 
1991/0430    
			unlock(&p->debug); 
1990/0227    
			unlock(&procalloc); 
			p->state = Dead; 
		} 
1991/0425/sys/src/9/port/proc.c:334,3391991/0430/sys/src/9/port/proc.c:335,343
1991/0425    
 
1990/0227    
	if(dolock) 
		lock(&p->debug); 
1991/0430    
 
	if(p->upage == 0) 
		errors("noted process disappeared"); 
1991/0425    
 
1991/0109    
	if(p != u->p){ 
		k = kmap(p->upage); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)