Skip to content
Commit 18869d0f authored by Christopher Friedt's avatar Christopher Friedt Committed by Martí Bolívar
Browse files

net: sockets: socketpair: do not allow blocking IO in ISR context



Using a socketpair for communication in an ISR is not a great
solution, but the implementation should be robust in that case
as well.

It is not acceptible to block in ISR context, so robustness here
means to return -1 to indicate an error, setting errno to `EAGAIN`
(which is synonymous with `EWOULDBLOCK`).

Fixes #25417

Signed-off-by: default avatarChris Friedt <cfriedt@meta.com>
(cherry picked from commit d832b04e)
parent a7d94633
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment