ctest: SIGKILL sent when process times out
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
when a test process times out, ctest sends a SIGSTOP followed by a SIGKILL to terminate the process. this is a bit harsh, since the process will not be able to clean up resources like lock files, hence making following test potentially fail when trying to acquire said resources.
it would be way more graceful to first send a SIGTERM, giving the process some time to reminate sensibly, and then send a SIGKILL after some time in case the process really insist on continuing to run
Edited by Brad King