Tom Lane <[EMAIL PROTECTED]> writes: > The check we need is "are there any other processes (still) attached to > this shmem" and AFAIK that is not available in the mmap API. Do you > know how to get it?
You can hack something up with fcntl() locks. If a process has a shared lock on the shm file, F_GETLK will get you its pid. Then grab your own shared lock. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend