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 (triggering
malloc
and causing a deadlock or crash as reported in https://github.com/wolfcw/libfaketime/issues/130#issuecomment-1989773770).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 theFAKETIME_DISABLE_SHM=1
environment variable.