Skip to content
Snippets Groups Projects
Commit 53d09b76 authored by Edgar E. Iglesias's avatar Edgar E. Iglesias Committed by Riku Voipio
Browse files

linux-user: Handle SOCK_CLOEXEC/NONBLOCK if unavailable on host


If the host lacks SOCK_CLOEXEC, bail out with -EINVAL.
If the host lacks SOCK_ONONBLOCK, try to emulate it with fcntl()
and O_NONBLOCK.

Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
parent 89aaf1a6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment