[OSM-dev] [Tile-serving] mod_tile causes segfault on debian 7.0
Tom Hughes
tom at compton.nu
Wed May 22 17:58:10 UTC 2013
On 22/05/13 18:54, Kai Krueger wrote:
> On 05/22/2013 11:27 AM, Tom Hughes wrote:
>
>>
>> Can the stores array not just be allocated in the child_init hook?
>
> I can't remember the details, but I believe child_init hook did not do
> at all what I wanted. I think it might have again only been per process
> and not per thread.
It is per-process yes, but that is the point - you do the allocation of
the stores array once for the process and save it with userdata_put and
then you only have to retrieve it in the per-thread context when the
request comes in.
Tom
--
Tom Hughes (tom at compton.nu)
http://compton.nu/
More information about the dev
mailing list