apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject ftok (Was: Re: svn commit: r1561150 - /httpd/httpd/trunk/server/core.c)
Date Fri, 24 Jan 2014 21:57:25 GMT
On httpd there was a discussion regarding versioning, and
this got me thinking...

Included in the APR 1.5.1 changes is an internal change
to how apr_shm_create(), when using APR_USE_SHMEM_SHMGET,
calculates the key (via ftok())... 

The problem (see the Bugz report) was that using the constant
1 would cause collisions, so I adjusted it to use a hash
of the filename. The problem there is that any external
APR users that needed to also determine the key needs to
be aware of that. And from what I can see, there is no
easy way to do that.

So I will be pulling that from 2.0-dev and 1.5-dev until
we can figure out a better way. Ideas appreciated.

View raw message