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

1990/1011/port/stream.c (diff list | history)

1990/1009/sys/src/9/port/stream.c:784,7981990/1011/sys/src/9/port/stream.c:784,803 (short | long | prev | next)
1990/0227    
	 */ 
1990/03013    
	lock(s); 
1990/0629    
	if(s->opens == 1){ 
		/* 
		 *  descend the stream closing the queues 
		 */ 
		for(q = s->procq; q; q = q->next){ 
			if(q->info->close) 
				(*q->info->close)(q->other); 
			/* this may be 2 streams joined device end to device end */ 
			if(q == s->devq->other) 
				break; 
1990/1011    
		if(!waserror()){ 
			/* 
			 *  descend the stream closing the queues 
			 */ 
			for(q = s->procq; q; q = q->next){ 
				if(q->info->close) 
					(*q->info->close)(q->other); 
				/* 
				 *  this may be 2 streams joined device end to device end 
				 */ 
				if(q == s->devq->other) 
					break; 
			} 
			poperror(); 
1990/0629    
		} 
	 
		/* 


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