Killing ./mvn spring-boot:run process with SIGKILL signal does not kill Spring Boot application running as child process.
- Spring Boot version: 3.0 M5
- Java version:
openjdk 17 2021-09-14 LTS
OpenJDK Runtime Environment Zulu17.28+13-CA (build 17+35-LTS)
Steps to reproduce:
- Use any Spring Boot application with
spring-boot-starter-web - Start application with
./mvnw spring-boot:run - Find the PID of started Maven process (for example with
ps | grep "spring-boot:run") - Kill Maven process
kill <pid>. - Spring Boot application started with
./mvnw spring-boot:runis still running and the port (8080by default) is still occupied.
As far as I can see this issue did not exist in 2.x and 3.0 until version M5 so it must have been introduced between M4 and M5.
Comment From: wilkinsona
Thanks for noticing and reporting this, @maciejwalkowiak.