I've made the abort and exit hook for JVM adding two aditional option
parameters at the end of config ones.
If the JVM isn't set properly (wrong LD_LIBRARY_PATH, PATH pointing to
the java outside the jre, etc...) the CreateJavaVM calls the abort hook.
I was assuming that this hook will act instead the real abort function,
but seems that it is only atexit call, cause the real abort function is
called after the abort hook.

So the only way is IMO to use the some sort of a lock file that will be
created when the abort hook is called from JVM initialization, thus
preventing further CreateJavaVM invocations.

Perhaps we can use the shm for that from parent process, but the env is
created on child_init.

Thoughts?

MT.



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>

Reply via email to