correctly set O_NONBLOCK in OSS

This commit is contained in:
Moonchild 2020-11-05 20:55:39 -08:00 committed by Screwtapello
parent d4e1c34d0b
commit 09100f5d88
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ private:
if(!hasDevices().find(self.device)) self.device = hasDevices().first(); 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; if(_fd < 0) return false;
int cooked = 1; int cooked = 1;