tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mukarram Baig <mukarram.b...@gmail.com>
Subject Why not have tomcat stop force as a synchronous operation
Date Mon, 15 Oct 2012 12:16:58 GMT
In Tomcat 7, when the container is stopped using catalina.sh stop force,
the script uses the CATALINA_PID environment variable to send a kill -9 to
the pid of the currently running container process. However, this doesn't
kill the process
instantaneously<http://stackoverflow.com/questions/8762228/is-kill-function-synchronous>
-
say for e.g. when the process is in the middle of a system call. In this
case, why cant we use the kill -0 `cat "$CATALINA_PID"` >/dev/null 2>&1 trick
that is used with stop in the non-force mode (in catalina.sh)? This would
ensure that the stop force is synchronous. Just wanted to know if there are
good reasons why this was not done.

Thanks in advance!

Reference:
http://stackoverflow.com/questions/12895295/why-not-have-tomcat-stop-force-as-a-synchronous-operation

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message