Skip to content
Commit d832b04e authored by Christopher Friedt's avatar Christopher Friedt Committed by Christopher Friedt
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>
parent fa54e3aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment