Re: shm ?

Mathieu Bouchard (boum01@UQAH.UQuebec.CA)
Wed, 17 Jun 1998 17:12:56 -0400 (EDT)


> Just use IPC_RMID as soon as you have all the handles you need, it won't
> actually be deleted until all references go away. We use it in apache
> without problem.

thanks, this will be great.

> If you think the shm stuff is bad, look at the sem stuff. With those you
> have to trap all exits from your code and hope some silly admin doesn't
> kill -9 (to be fair, this is the same for pthread semaphores, for good
> reason in that case). Not to mention that you can't restrict sem's to a
> parent-child relationship, so any process running as the same user can
> snarf one.

eeek

matju

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu