From 8c13bd27d66b4665dccac938931a409932f1f440 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 22 Jul 2017 20:05:17 -0400 Subject: [PATCH] unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blocking. --- src/physfs_platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physfs_platform_unix.c b/src/physfs_platform_unix.c index e7364df2..905600f6 100644 --- a/src/physfs_platform_unix.c +++ b/src/physfs_platform_unix.c @@ -80,7 +80,7 @@ void __PHYSFS_platformDetectAvailableCDs(PHYSFS_StringCallback cb, void *data) #elif (defined PHYSFS_HAVE_SYS_UCRED_H) int i; struct statfs *mntbufp = NULL; - int mounts = getmntinfo(&mntbufp, MNT_WAIT); + int mounts = getmntinfo(&mntbufp, MNT_NOWAIT); for (i = 0; i < mounts; i++) {