/* Set write drain mode Set CANTSENDMORE once all data has been write()n  */
void sofwdrain(struct socket *so)
/* Set write drain mode Set CANTSENDMORE once all data has been write()n  */
void sofwdrain(struct socket *so)
{
	if (so->so_rcv.sb_cc)
		so->so_state |= SS_FWDRAIN;
	else
		sofcantsendmore(so);
}