Skip to content
Commit 6161ea25 authored by Christopher Friedt's avatar Christopher Friedt Committed by Carles Cufí
Browse files

net: socket: socketpair: mitigate possible race condition



There was a possible race condition between sock_is_nonblock()
and k_sem_take() in spair_read() and spair_write() that was
mitigated.

Also clarified some of the conditional branching in those
functions.

Signed-off-by: default avatarChristopher Friedt <chrisfriedt@gmail.com>
parent 2593a919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment