Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --disable-shm / FAKETIME_DISABLE_SHM #465

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

Rob--W
Copy link
Contributor

@Rob--W Rob--W commented Mar 12, 2024

The use of shared memory has side effects (triggering malloc and causing a deadlock or crash as reported in #130 (comment)).

Currently, the only way to opt out of shared memory is by compiling with -DFAKE_STATELESS.

To allow disabling shared memory without recompiling, this patch introduces the --disable-shm option to faketime, equivalent to setting the FAKETIME_DISABLE_SHM=1 environment variable.

The use of shared memory has side effects. Currently, the only way to
opt out of shared memory is by compiling with -DFAKE_STATELESS.

To allow disabling shared memory without recompiling, this patch
introduces the --disable-shm option to `faketime`, equivalent to
setting the `FAKETIME_DISABLE_SHM=1` environment variable.
@wolfcw wolfcw merged commit b716122 into wolfcw:master Mar 19, 2024
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.

2 participants