patch-2.3.15 linux/net/sunrpc/svcsock.c
Next file: linux/net/unix/af_unix.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Aug 23 10:01:02 1999
- Orig file:
v2.3.14/linux/net/sunrpc/svcsock.c
- Orig date:
Tue May 11 14:37:40 1999
diff -u --recursive --new-file v2.3.14/linux/net/sunrpc/svcsock.c linux/net/sunrpc/svcsock.c
@@ -523,13 +523,8 @@
dprintk("svc: tcp_accept %p allocated\n", newsock);
newsock->type = sock->type;
- if ((err = sock->ops->dup(newsock, sock)) < 0) {
- printk(KERN_WARNING "%s: socket dup failed (err %d)!\n",
- serv->sv_name, -err);
- goto failed;
- }
+ newsock->ops = ops = sock->ops;
- ops = newsock->ops;
if ((err = ops->accept(sock, newsock, O_NONBLOCK)) < 0) {
printk(KERN_WARNING "%s: accept failed (err %d)!\n",
serv->sv_name, -err);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)