]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
The Linux CD module now uses O_NONBLOCK when opening the CDROM device to avoid failur...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Apr 2004 06:02:02 +0000 (06:02 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Apr 2004 06:02:02 +0000 (06:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4102 d7cf8633-e32d-0410-b094-e92efae38249

cd_linux.c

index 6e6525eb9282945f23356bd80ae94b3c1d048cd3..feaa5b3a1104ca8fe95d20c5dd0eed76c690af2b 100644 (file)
@@ -202,7 +202,7 @@ void CDAudio_SysInit (void)
 
 int CDAudio_SysStartup (void)
 {
-       if ((cdfile = open(cd_dev, O_RDONLY)) == -1)
+       if ((cdfile = open(cd_dev, O_RDONLY | O_NONBLOCK)) == -1)
        {
                Con_DPrintf("CDAudio_SysStartup: open of \"%s\" failed (%i)\n",
                                        cd_dev, errno);