mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
core-util: correct error in set_nonblock()
set_nonblock() will always set the file descriptor to non-blocking, regardless of the nonblock argument. This patch fixes the issue by passing the correct argument to the fcntl() call. The bug had no impact because there is only one caller of pa_make_fd_block() in poll-win32.c
This commit is contained in:
parent
114cdfbdde
commit
4762aa45d9
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ static void set_nonblock(int fd, bool nonblock) {
|
||||||
nv = v & ~O_NONBLOCK;
|
nv = v & ~O_NONBLOCK;
|
||||||
|
|
||||||
if (v != nv)
|
if (v != nv)
|
||||||
pa_assert_se(fcntl(fd, F_SETFL, v|O_NONBLOCK) >= 0);
|
pa_assert_se(fcntl(fd, F_SETFL, nv) >= 0);
|
||||||
|
|
||||||
#elif defined(OS_IS_WIN32)
|
#elif defined(OS_IS_WIN32)
|
||||||
u_long arg;
|
u_long arg;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue