FEX-Emu / FEX-Emu/FEX

std::shared_mutexes can't be safelly locked across forks

Open
#1,681 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8k
Forks
351
Avg merge
12h 31m
Merged PRs (30d)
102

Description

I run into this as part of #1558.

If they are locked before fork, then after fork they may or may not lockup on next lock, semi-randomly.

Looks like we need to roll our own `shared_mutex` implementation.

In general in need a gameplan for fork safety of FEXCore / Syscalls code

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.