summaryrefslogtreecommitdiff
path: root/libdiskfs/shutdown.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-27 16:58:22 +0000
committerMiles Bader <miles@gnu.org>1996-01-27 16:58:22 +0000
commit25ada5a33e33ddab689ee35c2a26bfd4ccf12fbe (patch)
tree04666d3329cf87ef5f5841721825d16be4461d16 /libdiskfs/shutdown.c
parentdd350afc7da9c49348a14dcf4d82a3f0cdeb71d0 (diff)
(diskfs_shutdown): Deal with ports_inhibit_class_rpcs returning an error.
Diffstat (limited to 'libdiskfs/shutdown.c')
-rw-r--r--libdiskfs/shutdown.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libdiskfs/shutdown.c b/libdiskfs/shutdown.c
index d6730655..e1f7f4e9 100644
--- a/libdiskfs/shutdown.c
+++ b/libdiskfs/shutdown.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1993, 1994, 1995 Free Software Foundation
+ Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation
This file is part of the GNU Hurd.
@@ -69,7 +69,12 @@ diskfs_shutdown (int flags)
/* Permit all the current RPC's to finish, and then
suspend new ones. */
- ports_inhibit_class_rpcs (diskfs_protid_class);
+ err = ports_inhibit_class_rpcs (diskfs_protid_class);
+ if (err)
+ {
+ rwlock_writer_unlock (&diskfs_fsys_lock);
+ return err;
+ }
/* First, see if there are outstanding user ports. */
nports = ports_count_class (diskfs_protid_class);