Back out uipc_socket.c:1.208, as it incorrectly assumes that all
sockets are connection-oriented for the purposes of kqueue registration. Since UDP sockets aren't connection-oriented, this appeared to break a great many things, such as RPC-based applications and services (i.e., NFS). Since jmg isn't around I'm backing this out before too many more feet are shot, but intend to investigate the right solution with him once he's available. Apologies to: jmg Discussed with: imp, scottl
This commit is contained in:
parent
7b98775375
commit
5c80f32b93
@ -2136,10 +2136,8 @@ soo_kqfilter(struct file *fp, struct knote *kn)
|
||||
case EVFILT_READ:
|
||||
if (so->so_options & SO_ACCEPTCONN)
|
||||
kn->kn_fop = &solisten_filtops;
|
||||
else if (so->so_state & SS_ISCONNECTED)
|
||||
kn->kn_fop = &soread_filtops;
|
||||
else
|
||||
return (EINVAL);
|
||||
kn->kn_fop = &soread_filtops;
|
||||
sb = &so->so_rcv;
|
||||
break;
|
||||
case EVFILT_WRITE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user