specify MNT_NOWAIT when getting filesystem information
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 7 Mar 1990 14:03:20 +0000 (06:03 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 7 Mar 1990 14:03:20 +0000 (06:03 -0800)
SCCS-vsn: sbin/umount/umount.c 5.13

usr/src/sbin/umount/umount.c

index fb9d5ce..bcba9b6 100644 (file)
@@ -23,7 +23,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)umount.c   5.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)umount.c   5.13 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -294,7 +294,7 @@ getmntname(name, what, type)
        int mntsize, i;
        struct statfs *mntbuf;
 
        int mntsize, i;
        struct statfs *mntbuf;
 
-       if ((mntsize = getmntinfo(&mntbuf)) == 0) {
+       if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) {
                perror("umount");
                return (0);
        }
                perror("umount");
                return (0);
        }