]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/nfs/krpc_subr.c
xnu-517.tar.gz
[apple/xnu.git] / bsd / nfs / krpc_subr.c
index f1412b99fa698cca56815d934e2984ec8a09c92c..8999fd21848ae000545dc179de81b011f291bc9e 100644 (file)
@@ -240,6 +240,7 @@ krpc_call(sa, prog, vers, func, data, from_p)
                tv.tv_sec = 1;
                tv.tv_usec = 0;
                bzero(&sopt, sizeof sopt);
+               sopt.sopt_dir = SOPT_SET;
                sopt.sopt_level = SOL_SOCKET;
                sopt.sopt_name = SO_RCVTIMEO;
                sopt.sopt_val = &tv;
@@ -358,6 +359,12 @@ krpc_call(sa, prog, vers, func, data, from_p)
                        printf("RPC timeout for server " IP_FORMAT "\n",
                                IP_LIST(&(sin->sin_addr.s_addr)));
 
+               /*
+                * soreceive is now conditionally using this pointer
+                * if present, it updates per-proc stats
+                */
+               auio.uio_procp = NULL;
+
                /*
                 * Wait for up to timo seconds for a reply.
                 * The socket receive timeout was set to 1 second.