+
+ /*
+ * Check if socket was connected while we were trying to
+ * acquire the funnel.
+ * XXX - probably shouldn't return an error for SOCK_DGRAM
+ */
+ if ((so->so_state & SS_ISCONNECTED) != 0) {
+ error = EISCONN;
+ thread_funnel_switch(NETWORK_FUNNEL, KERNEL_FUNNEL);
+ goto bad;
+ }
+