Browse Source

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

Ryan C. Gordon 8 năm trước cách đây
mục cha
commit
8c13bd27d6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/physfs_platform_unix.c

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