> Patrick Luby <[EMAIL PROTECTED]> wrote:
>
> > Pier,
> >
> > I took a quick look at the code and found the RegisterNative function.
This
> > looks like an interesting feature. I also found the same function in
your
> > daemons code. The picture is becoming much clearer.
>
> Well, RegisterNative is there since at least 4 years... Kinda hard to do
> some callbacks without it....
>
> > Let me try to get it working in the next few days with the callback
function
> > set
> > to invoke setuid() and have the callback invoke (via Java reflection
since it
> > won't be there on Windows or standalone start.
>
> IMO, it's a waste of time... You shouldn't call setuid from Java, but the
> native code launching the VM should call appropriate methods at
appropriate
> moments of the lifecycle... As I said before:
>
> 1) CreateJavaVM
> 2) call Tomcat->initialize() (bind to ports)
> 3) set uid/euid/gid/egid/groups
> 4) call Tomcat->start() (accept connections)
> 5) wait for signal
> 6) call Tomcat->stop()
> 7) exit process...
>
> All the code is already in place... Just need to be tied together...

Damn, wait a bit before posting, I was about to say the exact same thing ;-)
Now I have to go back and edit my message :-P

Remy


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to