[EMAIL PROTECTED] wrote:
-----Original Message-----
From: Guenter Knauf [mailto:[EMAIL PROTECTED]
Sent: 09 March 2004 21:32
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: jk2 new shmem using APR
I believe there's a problem with the file rights, not with
SHM self. I think the scoreboard is created by the init
process, but later on when the child wants to access it it
has insufficient rights.
Greg who reported the problem on Solaris posted an 'ls' of
the files created from APR and created from the older code
which Henri did put in for me, and there you could see the
difference...
Greg, can you please repost this?
Here you go, It does create a file, but with 0 size (even though we have
set something like 16m)
1000448/8192?
The size you use should be a multiple of the pagesize according to man mmap().
The pagesize could be checked by the following:
+++
#include <stdlib.h>
#include <unistd.h>
main()
{
printf("%d\n",(int)sysconf(_SC_PAGE_SIZE));
}
+++
But it works on my machine with size=1000448:
+++
bash-2.03$ ls -lt /tmp | more
total 308992
-rw------- 1 root other 0 Mar 11 16:20 session_mm_apache0.sem
-rw-r--r-- 1 root other 1000448 Mar 11 16:20 shm.file
+++
ie:
-rw-r--r-- 1 root other 0 Feb 27 12:31
cr.sandwich.pfizer.com_81.shm
Compared to the old mod_jk2 version 2.0.3 (same config bar the name and old
conector used)
-rwxr-xr-x 1 root root 1000448 Feb 24 11:14 shm.file
Greg
I saw these problems with another 3rd party module too
(mod_watch), and I looked for a solution, I've looked at this:
/**
* Set a file to be inherited by child processes.
*
*/
APR_DECLARE_INHERIT_SET(file);
which might probably solve it, but not tested yet with
mod_jk2; with the other module it didnt work, and I asked at
the httpd-dev list and was told that I should look at mod_ssl
which does some tricks to make sure that files created
by init are later accessable....
from this point of view APR is probably not broken, and we
need to do some more than only open the scoreboard file to
make sure it is later accessable.
Guenter.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
signature.asc
Description: OpenPGP digital signature