mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Fixed O_NONBLOCK
This commit is contained in:
parent
e74a7322ca
commit
b8abb93bb7
3 changed files with 6 additions and 6 deletions
|
|
@ -53,9 +53,9 @@ static int snd_seq_hw_nonblock(snd_seq_t *seq, 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue