| version 1.138, 2007/04/03 23:44:53 |
version 1.139, 2007/04/15 05:25:48 |
| Line 636 soclose(struct socket *so) |
|
| Line 636 soclose(struct socket *so) |
|
| int |
int |
| soabort(struct socket *so) |
soabort(struct socket *so) |
| { |
{ |
| |
int error; |
| |
|
| return (*so->so_proto->pr_usrreq)(so, PRU_ABORT, (struct mbuf *)0, |
KASSERT(so->so_head == NULL); |
| |
error = (*so->so_proto->pr_usrreq)(so, PRU_ABORT, (struct mbuf *)0, |
| (struct mbuf *)0, (struct mbuf *)0, (struct lwp *)0); |
(struct mbuf *)0, (struct mbuf *)0, (struct lwp *)0); |
| |
if (error) { |
| |
sofree(so); |
| |
} |
| |
return error; |
| } |
} |
| |
|
| int |
int |