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 : > > >> -Original Message- >> From: MATSUMOTO Ryosuke [mailto:matsu1...@gmail.com] >>

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 pid

Re: basic example shared memory code

2011-11-22 Thread Nick Kew
On Tue, 22 Nov 2011 09:41:02 -0500 "Pranesh Vadhirajan" 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 referring to the >

RE: basic example shared memory code

2011-11-22 Thread Pranesh Vadhirajan
Hi I compiled the code from the link you provided, but I received the following error when I restarted httpd: API module structure `shm_counter_module' in file /usr/lib/httpd/modules/shm_counter.so is garbled - perhaps this is not an Apache module DSO? I am not sure why I receive

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 abs

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 : > 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 need an >> exam

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 o

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 c

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,

Re: child init/ exit and the apr_cleanup_register

2011-11-22 Thread Sorin Manolache
On Tue, Nov 22, 2011 at 09:19, michaelr wrote: > 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.

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