Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/nfs Pull up revision 1.63 (requested by fvdl):



details:   https://anonhg.NetBSD.org/src/rev/9f8c3281e825
branches:  netbsd-1-5
changeset: 490351:9f8c3281e825
user:      he <he%NetBSD.org@localhost>
date:      Fri Dec 15 00:08:32 2000 +0000

description:
Pull up revision 1.63 (requested by fvdl):
  Fix NFS+tcp client hangs on server or network outage.  Again,
  please note that this introduces yet another kernel interface
  change: sobind() gains an argument.

diffstat:

 sys/nfs/nfs_socket.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b17af09c2859 -r 9f8c3281e825 sys/nfs/nfs_socket.c
--- a/sys/nfs/nfs_socket.c      Fri Dec 15 00:08:12 2000 +0000
+++ b/sys/nfs/nfs_socket.c      Fri Dec 15 00:08:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_socket.c,v 1.57.2.1 2000/12/14 23:37:35 he Exp $   */
+/*     $NetBSD: nfs_socket.c,v 1.57.2.2 2000/12/15 00:08:32 he Exp $   */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1995
@@ -185,7 +185,7 @@
                sin->sin_addr.s_addr = INADDR_ANY;
                tport = IPPORT_RESERVED - 1;
                sin->sin_port = htons(tport);
-               while ((error = sobind(so, m)) == EADDRINUSE &&
+               while ((error = sobind(so, m, &proc0)) == EADDRINUSE &&
                       --tport > IPPORT_RESERVED / 2)
                        sin->sin_port = htons(tport);
                m_freem(m);
@@ -201,7 +201,7 @@
                sin6->sin6_addr = in6addr_any;
                tport = IPV6PORT_RESERVED - 1;
                sin6->sin6_port = htons(tport);
-               while ((error = sobind(so, m)) == EADDRINUSE &&
+               while ((error = sobind(so, m, &proc0)) == EADDRINUSE &&
                       --tport > IPV6PORT_RESERVED / 2)
                        sin6->sin6_port = htons(tport);
                m_freem(m);



Home | Main Index | Thread Index | Old Index