Skip to content

linux: don't use uv__nonblock_ioctl() on sparc#1832

Merged
bnoordhuis merged 1 commit intolibuv:v1.xfrom
bnoordhuis:fix1830
May 6, 2018
Merged

linux: don't use uv__nonblock_ioctl() on sparc#1832
bnoordhuis merged 1 commit intolibuv:v1.xfrom
bnoordhuis:fix1830

Conversation

@bnoordhuis
Copy link
Copy Markdown
Member

@bnoordhuis bnoordhuis commented May 3, 2018

uv__nonblock_fcntl() and uv__nonblock_ioctl() do not commute when
O_NDELAY is not equal to O_NONBLOCK. Case in point: linux/sparc32
and linux/sparc64, where O_NDELAY is O_NONBLOCK + another bit.

Libuv uses uv__nonblock_fcntl() directly sometimes so ensure that it
commutes with uv__nonblock().

Fixes: #1830
CI: https://ci.nodejs.org/job/libuv-test-commit/824/

uv__nonblock_fcntl() and uv__nonblock_ioctl() do not commute when
O_NDELAY is not equal to O_NONBLOCK.  Case in point: linux/sparc32
and linux/sparc64, where O_NDELAY is O_NONBLOCK + another bit.

Libuv uses uv__nonblock_fcntl() directly sometimes so ensure that it
commutes with uv__nonblock().

Fixes: libuv#1830
PR-URL: libuv#1832
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
@bnoordhuis bnoordhuis closed this May 6, 2018
@bnoordhuis bnoordhuis deleted the fix1830 branch May 6, 2018 21:50
@bnoordhuis bnoordhuis merged commit bf605bd into libuv:v1.x May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants