| version 1.147.2.1, 2007/12/08 17:57:49 |
version 1.147.2.2, 2007/12/26 21:39:47 |
| Line 580 sobind(struct socket *so, struct mbuf *n |
|
| Line 580 sobind(struct socket *so, struct mbuf *n |
|
| } |
} |
| |
|
| int |
int |
| solisten(struct socket *so, int backlog) |
solisten(struct socket *so, int backlog, struct lwp *l) |
| { |
{ |
| int s, error; |
int s, error; |
| |
|
| s = splsoftnet(); |
s = splsoftnet(); |
| error = (*so->so_proto->pr_usrreq)(so, PRU_LISTEN, NULL, |
error = (*so->so_proto->pr_usrreq)(so, PRU_LISTEN, NULL, |
| NULL, NULL, NULL); |
NULL, NULL, l); |
| if (error != 0) { |
if (error != 0) { |
| splx(s); |
splx(s); |
| return error; |
return error; |