summaryrefslogtreecommitdiff
path: root/lib/mountlist.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-08-08 21:14:57 +0000
committerJim Meyering <jim@meyering.net>2003-08-08 21:14:57 +0000
commitf19043fbc07d082aeeab5687166701a355700571 (patch)
tree3e7c64e3afff1d98425f3011bf79464bf0d19bdd /lib/mountlist.c
parent54288039b7cd5cb627d6b416b4a635141ad58f75 (diff)
downloadcoreutils-f19043fbc07d082aeeab5687166701a355700571.tar.xz
(read_filesystem_list) [MOUNTED_GETFSSTAT]:
Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could hang on OSF/1 5.1 for DIR on both local and remote file systems. Reported by (and fix confirmed by) Nelson H. F. Beebe.
Diffstat (limited to 'lib/mountlist.c')
-rw-r--r--lib/mountlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 44d5ac4b4..a2c1c2569 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -544,13 +544,13 @@ read_filesystem_list (int need_fs_type)
int numsys, counter, bufsize;
struct statfs *stats;
- numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
+ numsys = getfsstat ((struct statfs *)0, 0L, MNT_NOWAIT);
if (numsys < 0)
return (NULL);
bufsize = (1 + numsys) * sizeof (struct statfs);
stats = xmalloc (bufsize);
- numsys = getfsstat (stats, bufsize, MNT_WAIT);
+ numsys = getfsstat (stats, bufsize, MNT_NOWAIT);
if (numsys < 0)
{