using syscall (SYS_fork) instead of fork(2) is a concession to glibc;… by rfht · Pull Request #21718 · mono/mono · GitHub
Skip to content

using syscall (SYS_fork) instead of fork(2) is a concession to glibc;… - #21718

Open
rfht wants to merge 1 commit into
mono:mainfrom
rfht:master
Open

rfht wants to merge 1 commit into
mono:mainfrom
rfht:master

Conversation

@rfht

@rfht rfht commented Oct 28, 2023

Copy link
Copy Markdown
Contributor

… consequently let !linux arches use fork(2). Necessary now on OpenBSD where syscall(2) access is deprecated. See comment about glibc:

… consequently let !__linux__ arches use fork(2). Necessary now on OpenBSD where syscall(2) access is being remove. See comment about glibc: https://github.com/mono/mono/blob/89f1d3cc22fd3b0848ecedbd6215b0bdfeea9477/mono/mini/mini-posix.c#L900
@madewokherd

Copy link
Copy Markdown
Collaborator

If this is about glibc then linux doesn't sound right to me either. Shouldn't we test for glibc?

@rfht

rfht commented Nov 16, 2025

Copy link
Copy Markdown
Contributor Author

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.

3 participants