Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blo…
…cking.
  • Loading branch information
icculus committed Jul 23, 2017
1 parent bc28fb7 commit 8c13bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs_platform_unix.c
Expand Up @@ -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++)
{
Expand Down

0 comments on commit 8c13bd2

Please sign in to comment.