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

1991/1216/port/pgrp.c (diff list | history)

1991/1127/sys/src/9/port/pgrp.c:95,1031991/1216/sys/src/9/port/pgrp.c:95,103 (short | long | prev | next)
1990/1110    
	p = proctab(0); 
1991/1112    
	for(i=0; i<conf.nproc; i++, p++) { 
		if(p->pgrp == pg && p->kp == 0) { 
1990/1110    
			lock(&p->debug); 
1991/1216    
			qlock(&p->debug); 
1990/1110    
			if(p->pid==0 || p->pgrp!=pg){ 
				unlock(&p->debug); 
1991/1216    
				qunlock(&p->debug); 
1990/1110    
				continue; 
			} 
1991/0125    
			if(!waserror()){ 
1991/1127/sys/src/9/port/pgrp.c:104,1101991/1216/sys/src/9/port/pgrp.c:104,110
1991/0125    
				postnote(p, 0, buf, flag); 
				poperror(); 
1990/1110    
			} 
			unlock(&p->debug); 
1991/1216    
			qunlock(&p->debug); 
1990/1110    
		} 
	} 
} 


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