Open CD Audio O_NONBLOCK. CD Audio now works on my system, and doesn't

spew garbage in /var/log/syslog. Whee!
This commit is contained in:
Ragnvald Maartmann-Moe IV 2000-10-29 11:24:18 +00:00
parent 091ed897ef
commit b0d4014885
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ int CDAudio_Init(void)
cd_dev[sizeof(cd_dev) - 1] = 0;
}
if ((cdfile = open(cd_dev, O_RDONLY)) == -1) {
if ((cdfile = open(cd_dev, O_RDONLY | O_NONBLOCK)) == -1) {
Con_Printf("CDAudio_Init: open of \"%s\" failed (%i)\n", cd_dev, errno);
cdfile = -1;
return -1;