From 25ada5a33e33ddab689ee35c2a26bfd4ccf12fbe Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 27 Jan 1996 16:58:22 +0000 Subject: (diskfs_shutdown): Deal with ports_inhibit_class_rpcs returning an error. --- libdiskfs/shutdown.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libdiskfs') 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); -- cgit v1.2.3