apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Athavale <amit_athav...@persistent.co.in>
Subject Re: apr_shm_attach() and APR_EEXIST
Date Wed, 26 May 2004 16:13:38 GMT


Graham Leggett wrote:

> Ok - what I would like to do is put information on what needs to be 
> done in the error message, so that when mod_ldap starts and the shared 
> memory goes pear shaped, the admin is given exact instructions on what 
> to do to fix it, this removing your step 4 above, and hopefully also 
> step 6. [1]
>
> Something like: "LDAP cache: shared memory segment could not be 
> created due to problems with an unclean shutdown. Please run 'ipcrm -m 
> XXXX' to fix this."
>
> How would I get the XXXX part? Is this returned anywhere? 


I don't think it is possible. APR does not pass back any information
in case of error, other than error code itself. (and anyway XXX is shmid
returned by shmget() which is failing in your case)

Regards
Amit




Mime
View raw message