[Previous] [Contents] [Index] [Next]

PgShmemDetach()

Remove a shared memory reference

Synopsis:

int PgShmemDetach( void *addr );

Description:

This function removes a shared memory reference previously attached with PgShmemAttach().


Note: The shared memory object will persist until no other applications refer to it. Don't use the same name for another shared memory object, especially right after detaching the first one.

Returns:

0
Successful completion.
-1
An error occurred; errno is set.

Errors:

See the errors for shm_unlink() in the C Library Reference.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgShmemAttach()


[Previous] [Contents] [Index] [Next]