On Thu, Jun 16, 2011 at 13:51, sebb <seb...@gmail.com> wrote:
[...]
>
> The value passed to System.exit(int) is passed to the OS.
>
> In Unix systems, 0 means success and anything else is generally not success.
>
> OpenVMS behaves differently, as already noted.
> If a process returns an error or fatal code to VMS, then by default
> the script running it will exit with an error.
>
> So changing the OS exit code can affect existing users.
>
> The point is that exit codes are not portable across OSes; the most
> one can hope for is sucess or failure indication.
>

It's not my fault if OpenVMS is broken in that regard, but anyway, I
was not talking about implementing this for existing Tomcat versions,
but for future ones (although if 7.0.x had this I'd be very happy).
And I'm mostly sure that Java can do whatever is required because it
can detect what OS it runs on. I mean, C has EXIT_SUCCESS and
EXIT_FAILURE, it's only a matter of defining such constants in the
Tomcat code as well - unless the JVM already has such exit code
defintions handy, in which case all is left to do is implementing
them.

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to