Process.terminate sends SIGTERM to the subprocess for graceful shutdown, which will wait the process to release its own resource. However, for code that has infinite loops, SIGTERM cannot end the process as desired. Instead SIGKILL will do the work for us.
Fix memory leak in
lf.coding.run
.Process.terminate
sends SIGTERM to the subprocess for graceful shutdown, which will wait the process to release its own resource. However, for code that has infinite loops, SIGTERM cannot end the process as desired. Instead SIGKILL will do the work for us.