From fd91b45a7f75948ab760d89ee917485919b97c5d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 3 Oct 1996 22:48:16 +0000 Subject: *** empty log message *** --- nfs/ops.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'nfs/ops.c') diff --git a/nfs/ops.c b/nfs/ops.c index 5251d423..4e4f2930 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -505,6 +505,13 @@ netfs_attempt_write (struct netcred *cred, struct node *np, } } + if (err == EINTR && amt != *len) + { + *len -= amt; + free (rpcbuf); + return 0; + } + if (err) { *len = 0; @@ -945,7 +952,10 @@ netfs_attempt_create_file (struct netcred *cred, struct node *np, { err = verify_nonexistent (cred, np, name); if (err) - return err; + { + mutex_unlock (&np->lock); + return err; + } } p = nfs_initialize_rpc (NFSPROC_CREATE (protocol_version), -- cgit v1.2.3