summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-01 23:37:21 +0000
committerMiles Bader <miles@gnu.org>1996-11-01 23:37:21 +0000
commit55c71683ef5bf90fd189b68433786742d4b260a0 (patch)
treea4ca818fd9a3f394f93be67bd609975145d42693 /nfs
parentb6d7f6dc510fc49b28acda325ffb5f24eb0ebc2c (diff)
(conduct_rpc):
Unlock OUTSTANDING_LOCK if write fails.
Diffstat (limited to 'nfs')
-rw-r--r--nfs/rpc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nfs/rpc.c b/nfs/rpc.c
index 81c98fc1..cbc5a198 100644
--- a/nfs/rpc.c
+++ b/nfs/rpc.c
@@ -194,6 +194,7 @@ conduct_rpc (void **rpcbuf, int **pp)
cc = write (main_udp_socket, *rpcbuf + sizeof (struct rpc_list), nc);
if (cc == -1)
{
+ mutex_unlock (&outstanding_lock);
unlink_rpc (hdr);
return errno;
}
@@ -384,7 +385,3 @@ rpc_receive_thread ()
while (!r);
}
}
-
-
-
-