From b9b0929cd0e4781c075e008bb08ef287e5676448 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 5 Nov 2020 20:55:39 -0800 Subject: [PATCH] correctly set O_NONBLOCK in OSS --- ruby/audio/oss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/audio/oss.cpp b/ruby/audio/oss.cpp index 41d297da..ecefe905 100755 --- a/ruby/audio/oss.cpp +++ b/ruby/audio/oss.cpp @@ -84,7 +84,7 @@ private: if(!hasDevices().find(self.device)) self.device = hasDevices().first(); - _fd = open(self.device, O_WRONLY, O_NONBLOCK); + _fd = open(self.device, O_WRONLY | O_NONBLOCK); if(_fd < 0) return false; int cooked = 1;