Skip to content

proc_open: fix socketpair() on macos#146

Merged
tobhe merged 1 commit into
openiked:masterfrom
LorenzISR:master
Aug 27, 2025
Merged

proc_open: fix socketpair() on macos#146
tobhe merged 1 commit into
openiked:masterfrom
LorenzISR:master

Conversation

@LorenzISR

Copy link
Copy Markdown

macos does not support socketpair() with the NONBLOCK and CLOEXEC flags. this caused iked to terminate immediately.

there is already a similar workaround in proc_init().

Fixes: #145

macos does not support socketpair() with the NONBLOCK and CLOEXEC
flags. this caused iked to terminate immediately.

there is already a similar workaround in proc_init().
@tobhe

tobhe commented Aug 27, 2025

Copy link
Copy Markdown
Member

Looks good. We should probably evaluate if we can emulate the missing flags somehow to make sure that doesn't break anything but as you said, we are using the same hack elsewhere.

@tobhe
tobhe merged commit 4a71216 into openiked:master Aug 27, 2025
6 checks passed
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.

instant crash on MacOS socketpair()

2 participants