Fixed O_NONBLOCK again...

This commit is contained in:
Jaroslav Kysela 1999-01-13 14:51:21 +00:00
parent 54c4a6c610
commit 58a6b3d774
4 changed files with 8 additions and 8 deletions

View file

@ -103,9 +103,9 @@ int snd_rawmidi_block_mode(void *handle, int enable)
if ((flags = fcntl(rmidi->fd, F_GETFL)) < 0)
return -errno;
if (enable)
flags |= O_NONBLOCK;
else
flags &= ~O_NONBLOCK;
else
flags |= O_NONBLOCK;
if (fcntl(rmidi->fd, F_SETFL, flags) < 0)
return -errno;
return 0;