diff options
author | Miles Bader <miles@gnu.org> | 1996-01-27 16:58:22 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-01-27 16:58:22 +0000 |
commit | 25ada5a33e33ddab689ee35c2a26bfd4ccf12fbe (patch) | |
tree | 04666d3329cf87ef5f5841721825d16be4461d16 /libdiskfs | |
parent | dd350afc7da9c49348a14dcf4d82a3f0cdeb71d0 (diff) |
(diskfs_shutdown): Deal with ports_inhibit_class_rpcs returning an error.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/shutdown.c | 9 |
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); |