unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blocking.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 22 Jul 2017 20:05:17 -0400
changeset 1515 6b999f011725
parent 1514 59b3d690cc3c
child 1516 ec5acd7392a2
unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blocking.
src/physfs_platform_unix.c
--- a/src/physfs_platform_unix.c	Sat Jul 22 20:04:38 2017 -0400
+++ b/src/physfs_platform_unix.c	Sat Jul 22 20:05:17 2017 -0400
@@ -80,7 +80,7 @@
 #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++)
     {