unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blocking.
This commit is contained in:
parent
bc28fb74b4
commit
8c13bd27d6
|
@ -80,7 +80,7 @@ void __PHYSFS_platformDetectAvailableCDs(PHYSFS_StringCallback cb, void *data)
|
||||||
#elif (defined PHYSFS_HAVE_SYS_UCRED_H)
|
#elif (defined PHYSFS_HAVE_SYS_UCRED_H)
|
||||||
int i;
|
int i;
|
||||||
struct statfs *mntbufp = NULL;
|
struct statfs *mntbufp = NULL;
|
||||||
int mounts = getmntinfo(&mntbufp, MNT_WAIT);
|
int mounts = getmntinfo(&mntbufp, MNT_NOWAIT);
|
||||||
|
|
||||||
for (i = 0; i < mounts; i++)
|
for (i = 0; i < mounts; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue