shm_detach

Disconnects from shared memory segment

&reftitle.description; `bool` `shm_detach` `SysvSharedMemory` `shm`

`shm_detach` disconnects from the shared memory given by the `shm` created by `shm_attach`. Remember, that shared memory still exist in the Unix system and the data is still present.

&reftitle.parameters;

`shm`

- A shared memory segment obtained from `shm_attach`.

&reftitle.returnvalues;

&return.success;

&reftitle.changelog;

&Version; | &Description;
8.0.0 | `shm` expects a `SysvSharedMemory` instance now; previously, a `resource` was expected.

&reftitle.seealso;

- `shm_attach`
- `shm_remove`
- `shm_remove_var`