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

1992/0223/port/tcpif.c (diff list | history)

1992/0111/sys/src/9/port/tcpif.c:29,371992/0223/sys/src/9/port/tcpif.c:29,34 (short | long | prev | next)
1991/0424    
		s->dst = 0; 
1991/1126    
		/* NO break */ 
1991/12171    
	case Close_wait:		/* Remote closes */ 
1991/0424    
		if(s->readq == 0) 
			break; 
1991/1120    
                 
1991/0424    
		if(s->err) { 
1992/0111    
			len = strlen(s->err); 
1991/0424    
			bp = allocb(len); 
1992/0111/sys/src/9/port/tcpif.c:43,491992/0223/sys/src/9/port/tcpif.c:40,51
1991/0424    
 
1991/1120    
		bp->flags |= S_DELIM; 
		bp->type = M_HANGUP; 
		PUTNEXT(s->readq, bp); 
1992/0223    
		qlock(s); 
		if(s->readq == 0) 
			freeb(bp); 
		else 
			PUTNEXT(s->readq, bp); 
		qunlock(s); 
1991/1120    
		break; 
1991/0424    
	} 
} 


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