From b0d4014885c95fa1e9dc71f868be0fadd9f4aff5 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sun, 29 Oct 2000 11:24:18 +0000 Subject: [PATCH] Open CD Audio O_NONBLOCK. CD Audio now works on my system, and doesn't spew garbage in /var/log/syslog. Whee! --- source/cd_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cd_linux.c b/source/cd_linux.c index d3a7948..a51e558 100644 --- a/source/cd_linux.c +++ b/source/cd_linux.c @@ -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;