summaryrefslogtreecommitdiff
path: root/src/process/aarch64/vfork.s
AgeCommit message (Collapse)AuthorFilesLines
2022-08-01aarch64: add vforkSzabolcs Nagy1-0/+9
The generic vfork implementation uses clone(SIGCHLD) which has fork semantics. Implement vfork as clone(SIGCHLD|CLONE_VM|CLONE_VFORK, 0) instead which has vfork semantics. (stack == 0 means sp is unchanged in the child.) Some users rely on vfork semantics when memory overcommit is disabled or when the vfork child runs code that synchronizes with the parent process (non-conforming).