mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
rmidi is not blocking as well
This commit is contained in:
parent
dc9bbf8f45
commit
9f6bcbbc0e
@ -75,7 +75,7 @@ mio_rmidi_open(const char *str, unsigned int mode, int nbio)
|
||||
flags = O_RDWR;
|
||||
else
|
||||
flags = (mode & MIO_OUT) ? O_WRONLY : O_RDONLY;
|
||||
while ((fd = open(path, flags)) < 0) {
|
||||
while ((fd = open(path, flags | O_NONBLOCK)) < 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
DPERROR(path);
|
||||
|
Loading…
Reference in New Issue
Block a user