id	summary	reporter	owner	description	type	status	priority	milestone	version	resolution	keywords	cc
751	Sending SIGTERM before SIGKILL to a remote shell command that has timed out	Fabrice		"I have a test step that does not produce output for one hour (the test or one of its subtest hangs for some reason). My buildbot is configured to timeout this step/command after 3600 seconds of inactivity on stdout or stderr. Thus buildbot sends correctly, as expected, a signal SIGKILL(9) to it and writes in the log:

{{{
command timed out: 3600 seconds without output, killing pid <PID>
process killed by signal 9
}}}

However, my problem is the following. There is no way for me to catch/trap SIGKILL(9) in my test step process running on the slave and thus, I am missing test logs. Is it possible to make buildbot send a couple of SIGTERM(15) signals before sending a SIGKILL(9) signal?






"	enhancement	reopened	minor	0.8.+	0.7.12		kill, sprint	
