Email List: Xaustin-review-lX
[All Lists]

shmctl(IPC_RMID) clarification

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: shmctl(IPC_RMID) clarification
From: Dragan Cvetkovic <yyyyyy@xxxxxxxxxxx>
Date: Thu, 6 Mar 2003 17:07:32 -0500 (EST)
                Hi,

what is the actual semantics of smhctl(shmid, IPC_RMID, NULL) system
call? The current version of specification states that 

  IPC_RMID
     Remove the shared memory identifier specified by shmid from the
     system and destroy the shared memory segment and shmid_ds data
     structure associated with it.

Does it mean that, if I delete a shared SYSV memory segment using the
above system call, it will be removed immediately (as it does on Solaris)
regardless of attached processes, or will it be deleted after the last
process detaches from it, as it is on Linux.

Which one is correct behaviour or does XSH specify that? Or is it
unspecified?

Thanks a lot in advance,

Dragan
-- 
Dr Dragan Cvetkovic, Soliton Inc., yyyyyy@xxxxxxxxxxx

To be or not to be is true. G. Boole    No it isn't.  L. E. J. Brouwer

<Prev in Thread] Current Thread [Next in Thread>