Jelajahi Sumber

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

Ryan C. Gordon 8 tahun lalu
induk
melakukan
8c13bd27d6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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++)
     {