apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler MacDonald <ty...@yi.org>
Subject Re: RFC: graceful handling of abandoned shared memory
Date Wed, 26 Apr 2006 15:34:55 GMT
Joe Orton <jorton@redhat.com> wrote:
> The patch also introduces a new problem: what if a previous process had 
> created a shm segment with that key and a different size?  You can't 
> carry on regardless in that case.

	Hmm. True. It may be better to destroy and re-create it.

> I don't understand from your previous mail why you can't use 
> apr_shm_remove() before creating the shm segment at startup.

	I only want the segment to be removed if nobody else is using it.
Will apr_shm_remove() fail if the segment is still in use?

	Thanks,
		Tyler


Mime
View raw message