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

1992/1206/port/devproc.c (diff list | history)

1992/1118/sys/src/9/port/devproc.c:571,5811992/1206/sys/src/9/port/devproc.c:571,586 (short | long | prev | next)
1991/1117    
	if(strncmp(buf, "stop", 4) == 0) 
1991/1112    
		procstopwait(p, Proc_stopme); 
	else if(strncmp(buf, "kill", 4) == 0) { 
1991/1117    
		if(p->state == Broken) 
1992/1206    
		switch(p->state) { 
		case Broken: 
			unbreak(p); 
			break; 
		case Stopped: 
			postnote(p, 0, "sys: killed", NExit); 
			p->procctl = Proc_exitme; 
1991/1112    
			ready(p); 
1992/1118    
		else { 
1991/1117    
			if(p->state == Stopped) 
				ready(p); 
1992/1206    
			break; 
		default: 
1991/1117    
			postnote(p, 0, "sys: killed", NExit); 
			p->procctl = Proc_exitme; 
		} 


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