don't wait in getmntinfo
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 7 Aug 1992 04:30:21 +0000 (20:30 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 7 Aug 1992 04:30:21 +0000 (20:30 -0800)
SCCS-vsn: libexec/lfs_cleanerd/library.c 5.2

usr/src/libexec/lfs_cleanerd/library.c

index aab7dd7..5994409 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)library.c  5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)library.c  5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -49,7 +49,7 @@ fs_getmntinfo(buf, type)
        struct statfs *sbp;
        int count, i, tcount;
 
        struct statfs *sbp;
        int count, i, tcount;
 
-       tcount = getmntinfo(&tstatfsp, 0);
+       tcount = getmntinfo(&tstatfsp, MNT_NOWAIT);
 
        if (tcount < 0) {
                err(0, "getmntinfo failed");
 
        if (tcount < 0) {
                err(0, "getmntinfo failed");