Skip to content

Conversation

@txy-21
Copy link

@txy-21 txy-21 commented Nov 11, 2025

The name parameter of shm_open needs to start with a forward slash:
The operation of shm_open() is analogous to that of open(2). name specifies the shared memory object to be created or opened. For porta‐ ble use, a shared memory object should be identified by a name of the form /somename; that is, a null-terminated string of up to NAME_MAX (i.e., 255) characters consisting of an initial slash, followed by one or more characters, none of which are slashes.

The name parameter of shm_open needs to start with a forward slash:
The  operation of shm_open() is analogous to that of open(2).  name specifies the shared memory object to be created or opened.  For porta‐
ble use, a shared memory object should be identified by a name of the form /somename; that is, a null-terminated string of up  to  NAME_MAX
(i.e., 255) characters consisting of an initial slash, followed by one or more characters, none of which are slashes.

Signed-off-by: tengshuangshuang <[email protected]>
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.

1 participant