Fixed O_NONBLOCK

This commit is contained in:
Abramo Bagnara 2001-04-28 18:40:05 +00:00
parent e74a7322ca
commit b8abb93bb7
3 changed files with 6 additions and 6 deletions

View file

@ -62,9 +62,9 @@ static int snd_rawmidi_hw_nonblock(snd_rawmidi_t *rmidi, int nonblock)
return -errno;
}
if (nonblock)
flags &= ~O_NONBLOCK;
else
flags |= O_NONBLOCK;
else
flags &= ~O_NONBLOCK;
if (fcntl(hw->fd, F_SETFL, flags) < 0) {
SYSERR("F_SETFL for O_NONBLOCK failed");
return -errno;