unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blocking.

This commit is contained in:
Ryan C. Gordon 2017-07-22 20:05:17 -04:00
parent bc28fb74b4
commit 8c13bd27d6
1 changed files with 1 additions and 1 deletions

View File

@ -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++)
{