child init/ exit and the apr_cleanup_register

2011-11-22 Thread michaelr
Hello again, maybe another stupid question but i could not found any example in the modules dir of the httpd source. Let's say i have an child_init_function which opens a filehandle. This filehandle should be open until the child ends. In mod_example.c they register an cleanup function to call

Re: child init/ exit and the apr_cleanup_register

2011-11-22 Thread michaelr
Hi Sorin, thank's for your explanation. Eyerything work fine when i register the cleanup in the way you suggested. apr_pool_cleanup_register(p, NULL, child_exit, apr_pool_cleanup_null); That saved my day. Greetings Michael On Tue, 2011-11-22 at 10:02 +0100, Sorin Manolache wrote: On Tue,

basic example shared memory code

2011-11-22 Thread Oğuzhan TOPGÜL
Hi guys, I'm trying to learn shared memory and mutex concepts and i need an example shared memory apache module code that was written in c. I found some codes, but none of them is working properly. I'm using ubuntu 10.10 as a development environment. Do you have any basic codes like shared memory

RE: Modules needing the approval of modules-dev@httpd.apache.org

2011-11-22 Thread Gavin McDonald
-Original Message- From: MATSUMOTO Ryosuke [mailto:matsu1...@gmail.com] Sent: Tuesday, 22 November 2011 4:27 PM To: modules-dev@httpd.apache.org Subject: Modules needing the approval of modules-dev@httpd.apache.org Hi, all I submitted my module to apache module registry on 10

Re: basic example shared memory code

2011-11-22 Thread MATSUMOTO Ryosuke
mod_vlimit https://modules.apache.org/search.php?id=2570 This module count a number of simultaneous connections on shared memory. 2011/11/22 michaelr my...@freenet.de: On Tue, 2011-11-22 at 11:26 +0200, Oğuzhan TOPGÜL wrote: Hi guys, I'm trying to learn shared memory and mutex concepts and i

Re: basic example shared memory code

2011-11-22 Thread Nick Kew
On 22 Nov 2011, at 09:26, Oğuzhan TOPGÜL wrote: Hi guys, I'm trying to learn shared memory and mutex concepts and i need an example shared memory apache module code that was written in c. If you're planning to write a module, bear in mind that apache now provides easy-to-use higher-level

Re: basic example shared memory code

2011-11-22 Thread Nick Kew
On Tue, 22 Nov 2011 09:41:02 -0500 Pranesh Vadhirajan vadhira...@teralogics.com wrote: Nick, can you suggest some of these higher-level abstractions, please? I have been trying to make a module of mine work with a POSIX shared memory implementation, but I'm going nowhere with that. Are you

Re: basic example shared memory code

2011-11-22 Thread Oğuzhan TOPGÜL
hey guys, i'm in terrible with these shared memory. I tried to write a basic module by looking at the examples that basic module just holds a counter and prints it to the client. when i compile the code attached, i got no error messages. But in apache error.log file i got lots of [notice] child

Re: Modules needing the approval of modules-dev@httpd.apache.org

2011-11-22 Thread MATSUMOTO Ryosuke
Sorry for delay, can't seem to find it currently, give me another day or two to check things out. OK. If you can't find submitted module, I will submit it again. regard, 2011/11/22 Gavin McDonald ga...@16degrees.com.au: -Original Message- From: MATSUMOTO Ryosuke